fixing some more bits

This commit is contained in:
Chris Forbes
2010-01-12 15:47:11 +13:00
parent 275100938d
commit df330f3151
6 changed files with 26 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ namespace OpenRa.Game.Traits
{
class CargoInfo : ITraitInfo
{
public readonly int Passengers = 0;
public readonly UnitMovementType[] PassengerTypes = { };
public readonly int UnloadFacing = 0;
@@ -64,7 +65,7 @@ namespace OpenRa.Game.Traits
public IEnumerable<PipType> GetPips( Actor self )
{
for (var i = 0; i < self.LegacyInfo.Passengers; i++)
for (var i = 0; i < self.Info.Traits.Get<CargoInfo>().Passengers; i++)
if (i >= cargo.Count)
yield return PipType.Transparent;
else