diff options
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/town_cmd.c b/town_cmd.c index 0c6615712..d2a14f59b 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -593,9 +593,9 @@ static void GrowTownInTile(TileIndex *tile_ptr, uint mask, int block, Town *t1) // Randomize new road block numbers a = block; b = block ^ 2; - r = (uint16)Random(); + r = GB(Random(), 0, 16); if (r <= 0x4000) do { - a = (int)Random() & 3; + a = GB(Random(), 0, 2); } while(a == b); if (!IsRoadAllowedHere(TILE_ADD(tile, ToTileIndexDiff(_roadblock_tileadd[a])), a)) { |