diff options
author | truelight <truelight@openttd.org> | 2007-11-04 22:47:34 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-11-04 22:47:34 +0000 |
commit | 69b1d97c0348229bf1ff14a672d7e50aa3d9eb3f (patch) | |
tree | 3f3cf6fdd8b19411c70fc99e7dc1456cbc7f798e /src/roadveh_cmd.cpp | |
parent | 3517ee6d54157541ad8c451a075b675c0b429506 (diff) | |
download | openttd-69b1d97c0348229bf1ff14a672d7e50aa3d9eb3f.tar.xz |
(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (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 d42e639c8..67f592c06 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1100,7 +1100,7 @@ static void RoadZPosAffectSpeed(Vehicle *v, byte old_z) static int PickRandomBit(uint bits) { uint i; - uint num = RandomRange(COUNTBITS(bits)); + uint num = RandomRange(CountBits(bits)); for (i = 0; !(bits & 1) || (int)--num >= 0; bits >>= 1, i++) {} return i; |