(svn r3010) Get rid of quite some dubious casts, either by using GB(), proper types or just removing them

This commit is contained in:
tron
2005-10-03 21:20:01 +00:00
parent b0a365ee67
commit db3b1228bf
12 changed files with 48 additions and 44 deletions

View File

@@ -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)