summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-15 08:49:46 +0000
committertron <tron@openttd.org>2005-11-15 08:49:46 +0000
commit1b0091e0d29a59811522758c00b690f4f07b471b (patch)
tree5408c5fefb49e90fec95ad27d0438500262d43c0 /disaster_cmd.c
parent86585602294b7273d5cd0df34a3f6794258a62bb (diff)
downloadopenttd-1b0091e0d29a59811522758c00b690f4f07b471b.tar.xz
(svn r3184) GB/SB
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 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) {