rnd-20050116-1-src
[rocksndiamonds.git] / src / screens.c
index 3d7cdf9d7873b28e4401b1581d52e474e10ab936..268cd9c83a1897fd45cd96c1272b3303c30965f3 100644 (file)
@@ -2964,6 +2964,13 @@ void HandleGameActions()
        return;
     }
 
+    if (level.native_em_level->ply1->alive == 0 &&
+       level.native_em_level->ply2->alive == 0)        /* all dead */
+      AllPlayersGone = TRUE;
+
+    if (AllPlayersGone && !TAPE_IS_STOPPED(tape))
+      TapeStop();
+
     /* --- game actions --- */
 
     if (tape.pausing)