diff options
author | truelight <truelight@openttd.org> | 2004-08-31 16:12:52 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-08-31 16:12:52 +0000 |
commit | 5eba928cb8afb98d25d8145b8f026e0de199d875 (patch) | |
tree | b97b894f85152a05546c2ecb614f2488d094de11 /ai_pathfinder.c | |
parent | a7dd461672f1802054c1e879dc1250bfcaac464f (diff) | |
download | openttd-5eba928cb8afb98d25d8145b8f026e0de199d875.tar.xz |
(svn r146) -Fix [AI]: Tunnel/bridge bug
-Fix [AI]: Minor problems
-Add [AI]: Profit check (if not making enough money, vehicles are sold)
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r-- | ai_pathfinder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ai_pathfinder.c b/ai_pathfinder.c index 01ce2198e..03439359f 100644 --- a/ai_pathfinder.c +++ b/ai_pathfinder.c @@ -187,7 +187,7 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr // This problem only is valid for tunnels: // When the last tile was not yet a tunnel, check if we enter from the right side.. if (!IS_TILETYPE(current->path.node.tile, MP_TUNNELBRIDGE) && (_map5[current->path.node.tile + _tiles_around[i]] & 0x80) == 0) { - if ((i^2) != (_map5[current->path.node.tile + _tiles_around[i]] & 3)) continue; + if (i != (_map5[current->path.node.tile + _tiles_around[i]] & 3)) continue; } } } |