X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_3.c;h=570d4da81a16be2b3fc89343a97067df8f75a606;hb=51dcb2097c619c5f9ba924a7edb4a3bdd6a6986e;hp=230a907c3ba27242140577139753a4e8d705d1f5;hpb=c5321d9d36d0a74062651d0352fbbaccbe125eca;p=rocksndiamonds.git diff --git a/src/game_em/synchro_3.c b/src/game_em/synchro_3.c index 230a907c..570d4da8 100644 --- a/src/game_em/synchro_3.c +++ b/src/game_em/synchro_3.c @@ -22,8 +22,16 @@ void synchro_3(void) if (lev.score > 9999) lev.score = 9999; +#if 1 + if (lev.time_initial == 0) + lev.time++; + else if (lev.time) + lev.time--; +#else if (lev.time) lev.time--; +#endif + if (lev.android_move_cnt-- == 0) lev.android_move_cnt = lev.android_move_time; if (lev.android_clone_cnt-- == 0) @@ -42,17 +50,18 @@ void synchro_3(void) if (lev.wonderwall_time && lev.wonderwall_state) lev.wonderwall_time--; - if (lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0) - play[SAMPLE_time] = 1; + if (lev.time_initial > 0 && + lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0) + play_sound(-1, -1, SAMPLE_time); if (lev.wheel_cnt) - play[SAMPLE_wheel] = 1; + play_element_sound(lev.wheel_x, lev.wheel_y, SAMPLE_wheel, Xwheel); - /* grow ameuba */ + /* grow amoeba */ random = Random; - for (count = lev.ameuba_time; count--;) + for (count = lev.amoeba_time; count--;) { x = (random >> 10) % (WIDTH - 2); y = (random >> 20) % (HEIGHT - 2); @@ -66,10 +75,10 @@ void synchro_3(void) case Xsand: case Xplant: case Yplant: - if (tab_ameuba[Cave[y-1][x]] || - tab_ameuba[Cave[y][x+1]] || - tab_ameuba[Cave[y+1][x]] || - tab_ameuba[Cave[y][x-1]]) + if (tab_amoeba[Cave[y-1][x]] || + tab_amoeba[Cave[y][x+1]] || + tab_amoeba[Cave[y+1][x]] || + tab_amoeba[Cave[y][x-1]]) Cave[y][x] = Xdrip_eat; }