Remove a bunch of unused stuff. May help pathfinder perf a little.

This commit is contained in:
Paul Chote
2010-07-26 20:27:06 +12:00
parent c39116df84
commit 637fae87cd
8 changed files with 3 additions and 136 deletions

View File

@@ -215,10 +215,7 @@ namespace OpenRA.Traits
return float.PositiveInfinity;
var type = self.World.GetTerrainType(cell);
var additionalCost = self.World.WorldActor.traits.WithInterface<ITerrainCost>()
.Select( t => t.GetTerrainCost(cell, self) ).Sum();
return TerrainCost[type] + additionalCost;
return TerrainCost[type];
}
public virtual float MovementSpeedForCell(Actor self, int2 cell)