Update Warehouse.lua

This commit is contained in:
Frank 2019-05-28 23:58:14 +02:00
parent a53bb1aac6
commit 271217cf04

View File

@ -3152,7 +3152,7 @@ function WAREHOUSE:onafterStart(From, Event, To)
end end
-- Mark point at road connection. -- Mark point at road connection.
if self.road then if self.road then
self.road:MarkToAll(string.format("%s road connection.", self.alias), true) self.markroad=self.road:MarkToCoalition(string.format("%s road connection.",self.alias), self:GetCoalition(), true)
end end
-- Get the closest point on railroad wrt spawnzone of ground assets. -- Get the closest point on railroad wrt spawnzone of ground assets.
@ -3166,7 +3166,7 @@ function WAREHOUSE:onafterStart(From, Event, To)
end end
-- Mark point at rail connection. -- Mark point at rail connection.
if self.rail then if self.rail then
self.rail:MarkToAll(string.format("%s rail connection.", self.alias), true) self.markrail=self.rail:MarkToCoalition(string.format("%s rail connection.", self.alias), self:GetCoalition(), true)
end end
-- Handle events: -- Handle events: