This commit is contained in:
Chris Forbes
2009-10-26 13:44:31 +13:00
parent 2058134380
commit b0cf14b3eb
2 changed files with 8 additions and 5 deletions

View File

@@ -72,8 +72,6 @@ namespace OpenRa.Game
continue;
if (Game.BuildingInfluence.GetBuildingAt(newHere - offset) != null)
continue;
//if (Game.UnitInfluence.GetUnitAt(newHere - offset) != null)
// continue;
double cellCost = ( ( d.X * d.Y != 0 ) ? 1.414213563 : 1.0 ) * passableCost[(int)umt][ newHere.X, newHere.Y ];
double newCost = cellInfo[ here.X, here.Y ].MinCost + cellCost;