X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_2.c;h=119d86a5832c1fd7d229d0e5b96057388937fce5;hb=37a06df577bbfd00f4b361f92cacb0d97036ba93;hp=3ce1efebbd19a336c1dd68d7610bd47b1a525681;hpb=51dcb2097c619c5f9ba924a7edb4a3bdd6a6986e;p=rocksndiamonds.git diff --git a/src/game_em/synchro_2.c b/src/game_em/synchro_2.c index 3ce1efeb..119d86a5 100644 --- a/src/game_em/synchro_2.c +++ b/src/game_em/synchro_2.c @@ -20,7 +20,7 @@ void synchro_2(void) { register unsigned int x = 0; register unsigned int y = 1; - register unsigned long random = Random; + register unsigned long random = RandomEM; register unsigned short *cave_cache = Cave[y]; /* might be a win */ unsigned long score = 0; @@ -4517,7 +4517,11 @@ void synchro_2(void) } } +#if 1 + lev.ball_pos = (lev.ball_pos + 1) % lev.num_ball_arrays; +#else lev.ball_pos = (lev.ball_pos + 1) & 7; +#endif goto loop; /* --------------------------------------------------------------------- */ @@ -4887,7 +4891,7 @@ void synchro_2(void) if (ply1.alive || ply2.alive) lev.score += score; /* only get a score if someone is alive */ - Random = random; + RandomEM = random; { void *temp = Cave;