Refactor int -> TerrainType. This had a bigger footprint than i initially intended.

This commit is contained in:
Paul Chote
2010-03-21 18:46:02 +13:00
parent 5b2dbc2389
commit 15a7eed603
13 changed files with 98 additions and 95 deletions

View File

@@ -56,7 +56,7 @@ namespace OpenRA.Traits
this.self = self;
self.World.WorldActor.traits.Get<UnitInfluence>().Add(self, this);
if (self.World.GetTerrainType(self.Location) == TerrainMovementType.Water)
if (self.World.GetTerrainType(self.Location) == TerrainType.Water)
self.traits.Get<RenderSimple>().anim.PlayRepeating("water");
}