(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT

This commit is contained in:
tron
2005-11-14 08:09:57 +00:00
parent 357aba7475
commit 833032adc0
20 changed files with 72 additions and 76 deletions

View File

@@ -97,7 +97,7 @@ static void DrawTile_Town(TileInfo *ti)
{
/* this "randomizes" on the (up to) 4 variants of a building */
byte gfx = _m[ti->tile].m4;
byte stage = _m[ti->tile].m3 >> 6;
byte stage = GB(_m[ti->tile].m3, 6, 2);
uint variant;
variant = ti->x >> 4;
variant ^= ti->x >> 6;
@@ -635,7 +635,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, uint mask, int block, Town *t1)
// Possibly extend the road in a direction.
// Randomize a direction and if it has a road, bail out.
i = (int)Random() & 3;
i = GB(Random(), 0, 2);
if (HASBIT(mask, i))
return;