Fixing uses of legacyInfo.WaterBound

This commit is contained in:
Bob
2010-01-12 19:31:06 +13:00
parent 5afedbf001
commit b21e1adc2d
8 changed files with 109 additions and 8 deletions

View File

@@ -26,9 +26,9 @@ namespace OpenRa.Game.Traits
return null;
}
public override int2? CreationLocation(Actor self, LegacyUnitInfo producee)
public override int2? CreationLocation(Actor self, NewUnitInfo producee)
{
return FindAdjacentTile(self, producee.WaterBound ?
return FindAdjacentTile(self, producee.Traits.Get<OwnedActorInfo>().WaterBound ?
UnitMovementType.Float : UnitMovementType.Wheel); /* hackety hack */
}