summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-11-04 23:06:39 +0000
committertruelight <truelight@openttd.org>2007-11-04 23:06:39 +0000
commit4b8aaa994c3f79ba360bc2e3535f7319b09ef0a9 (patch)
treeb50a237674dc49109595b0832ab58f70e3f9af9c /src/roadveh_cmd.cpp
parent69b1d97c0348229bf1ff14a672d7e50aa3d9eb3f (diff)
downloadopenttd-4b8aaa994c3f79ba360bc2e3535f7319b09ef0a9.tar.xz
(svn r11383) -Codechange: fixed all the mess around KillFirstBit (tnx to Rubidium and skidd13)
Diffstat (limited to 'src/roadveh_cmd.cpp')
-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 67f592c06..e87127611 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 (!(KillFirstBit2x64(trackdirs))) {
+ if (KillFirstBit(trackdirs) != TRACKDIR_BIT_NONE) {
return_track(FindFirstBit2x64(trackdirs));
}