X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_1.c;h=faea7eb5f5b53655b5f8438e2efcaebd77a678a4;hb=2d235297197dd0c325184f7fc401d9c5c41c2616;hp=9114d5f8e5ed09466b4cbef6d0dbbddefa1159ae;hpb=86e1890b2d87dd7710b320e2b306c7291d41e2a5;p=rocksndiamonds.git diff --git a/src/game_em/synchro_1.c b/src/game_em/synchro_1.c index 9114d5f8..faea7eb5 100644 --- a/src/game_em/synchro_1.c +++ b/src/game_em/synchro_1.c @@ -994,11 +994,14 @@ 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.time_initial > 0) - lev.score += lev.time * lev.exit_score / 100; + + if (--lev.home == 0 && lev.time_initial > 0) /* game won */ + lev.score += lev.time * lev.exit_score / 100; + ply->anim = SPR_walk + anim; ply->x = x; ply->y = y; + break; } }