(svn r3184) GB/SB

This commit is contained in:
tron
2005-11-15 08:49:46 +00:00
parent 8658560229
commit 1b0091e0d2
7 changed files with 13 additions and 13 deletions

View File

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