diff options
author | rubidium <rubidium@openttd.org> | 2007-08-10 13:27:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-10 13:27:07 +0000 |
commit | 1a5b0a3417129a464bc316899d8f7ca9a64e8f5b (patch) | |
tree | 53923b2a3d3b976e54bad6293ae44201103e2c4e /src | |
parent | 1194f227da08802a64b929a81c41619973263734 (diff) | |
download | openttd-1a5b0a3417129a464bc316899d8f7ca9a64e8f5b.tar.xz |
(svn r10838) -Fix [FS#1119] (r10698): double negation where only single negation was needed. Patch by frosch.
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/trolly/pathfinder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/trolly/pathfinder.cpp b/src/ai/trolly/pathfinder.cpp index 7277cf4c2..00fcf2fe2 100644 --- a/src/ai/trolly/pathfinder.cpp +++ b/src/ai/trolly/pathfinder.cpp @@ -419,7 +419,7 @@ static int32 AyStar_AiPathFinder_CalculateG(AyStar *aystar, AyStarNode *current, } 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; |