cargo: support LST

This commit is contained in:
Chris Forbes
2010-01-05 13:45:51 +13:00
parent 0b1ea48c09
commit f2231997dc

View File

@@ -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++)