X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_3.c;h=bafc581f8f458d5174084b7bd7f0423f1b43a31c;hb=7758484aa10294db3689a7eacc9c4b64132d5d6e;hp=f094ceebc3684c42cbed64fe4d229c82acc52472;hpb=2c89261a1186ffc19bd6e5f82e9369bee1545e2f;p=rocksndiamonds.git diff --git a/src/game_em/synchro_3.c b/src/game_em/synchro_3.c index f094ceeb..bafc581f 100644 --- a/src/game_em/synchro_3.c +++ b/src/game_em/synchro_3.c @@ -5,31 +5,31 @@ * this should be spread over the frames for reduced cpu load. */ -#include "tile.h" -#include "level.h" -#include "sample.h" +#include "main_em.h" void synchro_3(void) { - register unsigned int x; - register unsigned int y; - register unsigned int count; - register unsigned long random; + int x; + int y; + int count; + unsigned long random; /* update variables */ if (lev.score > 9999) lev.score = 9999; +#if 0 #if 1 if (lev.time_initial == 0) lev.time++; - else if (lev.time) + else if (lev.time > 0) lev.time--; #else if (lev.time) lev.time--; +#endif #endif if (lev.android_move_cnt-- == 0) @@ -50,16 +50,18 @@ void synchro_3(void) if (lev.wonderwall_time && lev.wonderwall_state) lev.wonderwall_time--; +#if 0 if (lev.time_initial > 0 && - lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0) + lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0 && setup.time_limit) play_sound(-1, -1, SAMPLE_time); +#endif if (lev.wheel_cnt) - play_sound(-1, -1, SAMPLE_wheel); + play_element_sound(lev.wheel_x, lev.wheel_y, SAMPLE_wheel, Xwheel); /* grow amoeba */ - random = Random; + random = RandomEM; for (count = lev.amoeba_time; count--;) { @@ -85,7 +87,7 @@ void synchro_3(void) random = random * 129 + 1; } - Random = random; + RandomEM = random; /* handle explosions */