summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-03 21:20:01 +0000
committertron <tron@openttd.org>2005-10-03 21:20:01 +0000
commitdb3b1228bfad7fb42ce708dc93db21d840b07577 (patch)
tree4379525d1560a92903c1fdc87cdbad70a36ea271 /disaster_cmd.c
parentb0a365ee676b8b612d88a3df1cac904db73e8bcf (diff)
downloadopenttd-db3b1228bfad7fb42ce708dc93db21d840b07577.tar.xz
(svn r3010) Get rid of quite some dubious casts, either by using GB(), proper types or just removing them
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index ea9c9abbe..842f35df8 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -977,13 +977,13 @@ static void DoDisaster(void)
if (j == 0)
return;
- _disaster_initprocs[buf[(uint16)Random() * j >> 16]]();
+ _disaster_initprocs[buf[GB(Random(), 0, 16) * j >> 16]]();
}
static void ResetDisasterDelay(void)
{
- _disaster_delay = (int)(Random() & 0x1FF) + 730;
+ _disaster_delay = GB(Random(), 0, 9) + 730;
}
void DisasterDailyLoop(void)