X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_3.c;h=307d285ebfa6794efa687a1efe477ddd53ca419a;hp=449ecab094649ad72c2104835294bd8cb11f4b32;hb=520916c89d7d96944bf3d66e3caa5afd840df74c;hpb=ceb7ded99fc9cc9519adeea07808a344678c196e diff --git a/src/game_em/synchro_3.c b/src/game_em/synchro_3.c index 449ecab0..307d285e 100644 --- a/src/game_em/synchro_3.c +++ b/src/game_em/synchro_3.c @@ -5,35 +5,21 @@ * 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 > 0) - lev.time--; -#else - if (lev.time) - lev.time--; -#endif -#endif - if (lev.android_move_cnt-- == 0) lev.android_move_cnt = lev.android_move_time; if (lev.android_clone_cnt-- == 0) @@ -52,12 +38,6 @@ 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 && setup.time_limit) - play_sound(-1, -1, SAMPLE_time); -#endif - if (lev.wheel_cnt) play_element_sound(lev.wheel_x, lev.wheel_y, SAMPLE_wheel, Xwheel);