Remove a bunch of unused stuff. May help pathfinder perf a little.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user