From f2231997dc7d86380a2edd4622f684ab293790c3 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 5 Jan 2010 13:45:51 +1300 Subject: [PATCH] cargo: support LST --- OpenRa.Game/Traits/Activities/UnloadCargo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRa.Game/Traits/Activities/UnloadCargo.cs b/OpenRa.Game/Traits/Activities/UnloadCargo.cs index 705e97b473..2f23dc7886 100644 --- a/OpenRa.Game/Traits/Activities/UnloadCargo.cs +++ b/OpenRa.Game/Traits/Activities/UnloadCargo.cs @@ -12,7 +12,8 @@ namespace OpenRa.Game.Traits.Activities int2? ChooseExitTile(Actor self) { - if (!Game.IsCellBuildable(self.Location, UnitMovementType.Foot, self)) + // is anyone still hogging this tile? + if (Game.UnitInfluence.GetUnitsAt(self.Location).Count() > 1) return null; for (var i = -1; i < 2; i++)