fix stuff getting stuck on bridges

This commit is contained in:
Chris Forbes
2010-04-25 14:38:07 +12:00
parent 99b2c03534
commit 5fd86f84fc

View File

@@ -94,7 +94,8 @@ namespace OpenRA
continue;
var costHere = passableCost[(int)umt][newHere.X, newHere.Y]*
world.WorldActor.traits.WithInterface<ICustomTerrain>().Aggregate(1f, (a, x) => a * x.GetCost(p.Location,umt));
world.WorldActor.traits.WithInterface<ICustomTerrain>()
.Aggregate(1f, (a, x) => a * x.GetCost(newHere,umt));
if (costHere == float.PositiveInfinity)
continue;