diff -r 0a0cff8595dd -r 0bb8f8206996 src/ai/trolly/pathfinder.cpp --- a/src/ai/trolly/pathfinder.cpp Fri Aug 10 13:11:53 2007 +0000 +++ b/src/ai/trolly/pathfinder.cpp Fri Aug 10 13:27:07 2007 +0000 @@ -419,7 +419,7 @@ } else { if (!IsRoad(parent->path.node.tile) || !IsTileType(parent->path.node.tile, MP_TUNNELBRIDGE)) { Foundation f = GetRoadFoundation(parent_tileh, (RoadBits)AiNew_GetRoadDirection(parent->path.parent->node.tile, parent->path.node.tile, current->tile)); - if (IsInclinedFoundation(f) || (!IsFoundation(f) == 0 && HASBIT(BRIDGE_NO_FOUNDATION, parent_tileh))) { + if (IsInclinedFoundation(f) || (!IsFoundation(f) && HASBIT(BRIDGE_NO_FOUNDATION, parent_tileh))) { res += AI_PATHFINDER_TILE_GOES_UP_PENALTY; } else { res += AI_PATHFINDER_FOUNDATION_PENALTY;