From 5fd86f84fc5ea8b1bc89813a89e397978b32c134 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 25 Apr 2010 14:38:07 +1200 Subject: [PATCH] fix stuff getting stuck on bridges --- OpenRA.Game/PathSearch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/PathSearch.cs b/OpenRA.Game/PathSearch.cs index f2a70f2cad..7bf840f93c 100755 --- a/OpenRA.Game/PathSearch.cs +++ b/OpenRA.Game/PathSearch.cs @@ -94,7 +94,8 @@ namespace OpenRA continue; var costHere = passableCost[(int)umt][newHere.X, newHere.Y]* - world.WorldActor.traits.WithInterface().Aggregate(1f, (a, x) => a * x.GetCost(p.Location,umt)); + world.WorldActor.traits.WithInterface() + .Aggregate(1f, (a, x) => a * x.GetCost(newHere,umt)); if (costHere == float.PositiveInfinity) continue;