summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index 19609f7dd..90e005df5 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -269,7 +269,7 @@ static void DisasterTick_UFO(Vehicle *v)
return;
}
if (++v->age < 6) {
- v->dest_tile = TILE_MASK(Random());
+ v->dest_tile = RandomTile();
return;
}
v->current_order.station = 1;
@@ -571,12 +571,12 @@ static void DisasterTick_4(Vehicle *v)
}
if (++v->age < 6) {
- v->dest_tile = TILE_MASK(Random());
+ v->dest_tile = RandomTile();
return;
}
v->current_order.station = 1;
- tile_org = tile = TILE_MASK(Random());
+ tile_org = tile = RandomTile();
do {
if (IsTileType(tile, MP_RAILWAY) &&
(_m[tile].m5 & ~3) != 0xC0 && IS_HUMAN_PLAYER(GetTileOwner(tile)))