summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-11-05 17:50:10 +0000
committertruelight <truelight@openttd.org>2007-11-05 17:50:10 +0000
commit9f319318b4c714c80e6d8ebce3d9259d17ed2036 (patch)
treeda3cecaf44b5d69713180a0c9c455c58c1661dde
parent1626ff394800a2c8324c268ee5117b644a23ef6d (diff)
downloadopenttd-9f319318b4c714c80e6d8ebce3d9259d17ed2036.tar.xz
(svn r11385) -Fix r11383: bool operation can be hard to translate for some people ;) (tnx fjb for noticing this bug ;))
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index e87127611..0bb6c80c4 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1211,7 +1211,7 @@ static Trackdir RoadFindPathToDest(Vehicle* v, TileIndex tile, DiagDirection ent
}
/* Only one track to choose between? */
- if (KillFirstBit(trackdirs) != TRACKDIR_BIT_NONE) {
+ if (KillFirstBit(trackdirs) == TRACKDIR_BIT_NONE) {
return_track(FindFirstBit2x64(trackdirs));
}