added flags for "level solved" and "game over" to EM engine
[rocksndiamonds.git] / src / game_em / synchro_1.c
index 475fea1cf8546a1222a11f9733d0705f52f185f3..b390ad916e71dfeec0f108d8fa38d81edbdd9b7b 100644 (file)
@@ -10,8 +10,6 @@
 
 #define USE_CHANGED_ACID_STUFF         1
 
-extern boolean checkIfAllPlayersFitToScreen(void);
-
 static void check_player(struct PLAYER *);
 static void kill_player(struct PLAYER *);
 static boolean player_digfield(struct PLAYER *, int, int);
@@ -1071,6 +1069,9 @@ static boolean player_digfield(struct PLAYER *ply, int dx, int dy)
       case Xexit_3:
        lev.home--;
 
+       if (lev.home == 0)
+         game_em.level_solved = TRUE;
+
        ply->anim = SPR_walk + anim;
        ply->x = x;
        ply->y = y;