diff options
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r-- | disaster_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c index 601bc641e..1f4c72098 100644 --- a/disaster_cmd.c +++ b/disaster_cmd.c @@ -666,7 +666,7 @@ static void DisasterTick_5_and_6(Vehicle *v) return; } - v->direction = (v->direction + ((Random()&1)?2:-2))&7; + v->direction = (v->direction + (GB(Random(), 0, 1) ? 2 : -2)) & 7; } @@ -902,9 +902,9 @@ static void Disaster6_Init(void) static void Disaster7_Init(void) { + int index = GB(Random(), 0, 4); Industry *i; int maxloop = 15; - int index = Random() & 0xF; do { FOR_ALL_INDUSTRIES(i) { |