diff options
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r-- | unmovable_cmd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c index f18ebaa08..e44649bce 100644 --- a/unmovable_cmd.c +++ b/unmovable_cmd.c @@ -347,10 +347,7 @@ void GenerateUnmovables(void) i = ScaleByMapSize(1000); j = ScaleByMapSize(40); // maximum number of radio towers on the map do { - r = Random(); - tile = r % MapSize(); -// TILE_MASK seems to be not working correctly. Radio masts accumulate in one area. -// tile = TILE_MASK(r); + tile = RandomTile(); if (IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == 0 && h >= 32) { if(!checkRadioTowerNearby(tile)) continue; |