diff options
author | tron <tron@openttd.org> | 2005-11-15 08:49:46 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-15 08:49:46 +0000 |
commit | 1b0091e0d29a59811522758c00b690f4f07b471b (patch) | |
tree | 5408c5fefb49e90fec95ad27d0438500262d43c0 /disaster_cmd.c | |
parent | 86585602294b7273d5cd0df34a3f6794258a62bb (diff) | |
download | openttd-1b0091e0d29a59811522758c00b690f4f07b471b.tar.xz |
(svn r3184) GB/SB
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) { |