(svn r8864) -Codechange: make ClrBitT(), SetBitT() and ToggleBitT more like CLRBIT() and so on (modify value of the first parameter instead or returning the result)

This commit is contained in:
KUDr
2007-02-23 20:51:10 +00:00
parent 20405f56b4
commit dac3cd622f
4 changed files with 12 additions and 18 deletions

View File

@@ -730,7 +730,7 @@ static int GrowTownAtRoad(Town *t, TileIndex tile)
// Exclude the source position from the bitmask
// and return if no more road blocks available
mask = ClrBitT(mask, (block ^ 2));
ClrBitT(mask, (block ^ 2));
if (mask == 0)
return _grow_town_result;