diff options
author | truelight <truelight@openttd.org> | 2007-11-04 23:06:39 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-11-04 23:06:39 +0000 |
commit | 4b8aaa994c3f79ba360bc2e3535f7319b09ef0a9 (patch) | |
tree | b50a237674dc49109595b0832ab58f70e3f9af9c /src/roadveh_cmd.cpp | |
parent | 69b1d97c0348229bf1ff14a672d7e50aa3d9eb3f (diff) | |
download | openttd-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.cpp | 2 |
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)); } |