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;
}
}