rnd-20050103-1-src
[rocksndiamonds.git] / src / game_em / synchro_1.c
index 9114d5f8e5ed09466b4cbef6d0dbbddefa1159ae..faea7eb5f5b53655b5f8438e2efcaebd77a678a4 100644 (file)
@@ -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;
     }
   }