diff options
author | rubidium <rubidium@openttd.org> | 2007-05-27 08:53:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-27 08:53:21 +0000 |
commit | 53380fc04797450d74f7e7c7a6e9461c2a1a2d64 (patch) | |
tree | 633ea6212d08f0951947b06005ecce1914898f88 /src/ai/trolly/pathfinder.cpp | |
parent | 1b33f1987712f5b03600ae5dccb13922b9526af5 (diff) | |
download | openttd-53380fc04797450d74f7e7c7a6e9461c2a1a2d64.tar.xz |
(svn r9954) -Fix [FS#811]: trolley AI crashed when trying to determine what the roadbits are.
Diffstat (limited to 'src/ai/trolly/pathfinder.cpp')
-rw-r--r-- | src/ai/trolly/pathfinder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/trolly/pathfinder.cpp b/src/ai/trolly/pathfinder.cpp index e7102d642..d117f48dd 100644 --- a/src/ai/trolly/pathfinder.cpp +++ b/src/ai/trolly/pathfinder.cpp @@ -284,9 +284,9 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr dir = 0; } else { // It already has road.. check if we miss any bits! - if ((GetRoadBits(ctile, ROADTYPE_ROAD) & dir) != dir) { + if ((GetAnyRoadBits(ctile, ROADTYPE_ROAD) & dir) != dir) { // We do miss some pieces :( - dir &= ~GetRoadBits(ctile, ROADTYPE_ROAD); + dir &= ~GetAnyRoadBits(ctile, ROADTYPE_ROAD); } else { dir = 0; } |