most of the support for boats

This commit is contained in:
Chris Forbes
2009-10-26 21:52:13 +13:00
parent 384a3ee2e9
commit 0d62318688
7 changed files with 53 additions and 17 deletions

View File

@@ -70,10 +70,9 @@ namespace OpenRa.Game.Traits
public UnitMovementType GetMovementType()
{
/* todo: boats */
var vi = self.unitInfo as UnitInfo.VehicleInfo;
if (vi == null) return UnitMovementType.Foot;
if (vi == null) return UnitMovementType.Foot;
if (vi.WaterBound) return UnitMovementType.Float;
return vi.Tracked ? UnitMovementType.Track : UnitMovementType.Wheel;
}