X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_1.c;h=640822f15623794a1eb5d848b2fc26b8d057fbe2;hp=a8ff691a2d65828392b9d1d53dc77861bba46bd7;hb=2c89261a1186ffc19bd6e5f82e9369bee1545e2f;hpb=21597f245598c0c30506c53448c1a549beeb3722 diff --git a/src/game_em/synchro_1.c b/src/game_em/synchro_1.c index a8ff691a..640822f1 100644 --- a/src/game_em/synchro_1.c +++ b/src/game_em/synchro_1.c @@ -87,8 +87,8 @@ static int test(struct PLAYER *ply) if (!ply->alive) return 0; - if (lev.time == 0) - return(1); + if (lev.time_initial > 0 && lev.time == 0) + return 1; switch(Cave[y-1][x]) { @@ -108,7 +108,7 @@ static int test(struct PLAYER *ply) case Xtank_goe: case Xtank_gos: case Xtank_gow: - return(1); + return 1; } switch(Cave[y][x+1]) @@ -129,7 +129,7 @@ static int test(struct PLAYER *ply) case Xtank_goe: case Xtank_gos: case Xtank_gow: - return(1); + return 1; } switch(Cave[y+1][x]) @@ -150,7 +150,7 @@ static int test(struct PLAYER *ply) case Xtank_goe: case Xtank_gos: case Xtank_gow: - return(1); + return 1; } switch(Cave[y][x-1]) @@ -171,7 +171,7 @@ static int test(struct PLAYER *ply) case Xtank_goe: case Xtank_gos: case Xtank_gow: - return(1); + return 1; } switch(Cave[y][x]) @@ -184,10 +184,10 @@ static int test(struct PLAYER *ply) case Xdynamite_2: case Xdynamite_3: case Xdynamite_4: - return(0); + return 0; } - return(1); + return 1; } static void die(struct PLAYER *ply) @@ -987,8 +987,8 @@ static void player(struct PLAYER *ply) case Xexit_2: case Xexit_3: play_element_sound(x, y, SAMPLE_exit, Xexit_1); - if (--lev.home == 0) - lev.score += lev.time * lev.exit_score / 100; + if (--lev.home == 0 && lev.time_initial > 0) + lev.score += lev.time * lev.exit_score / 100; ply->anim = SPR_walk + anim; ply->x = x; ply->y = y;