(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)

This commit is contained in:
truelight
2007-11-04 22:47:34 +00:00
parent 3517ee6d54
commit 69b1d97c03
6 changed files with 14 additions and 14 deletions

View File

@@ -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;