fixed checking position of inactive players
authorHolger Schemel <info@artsoft.org>
Tue, 18 Feb 2020 17:48:38 +0000 (18:48 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2020 16:19:58 +0000 (18:19 +0200)
src/game_em/logic.c

index 2e959ffeeea12a38deb8a2f9113463a9b54fbcef..9e3b690f2a9c6b70127f3645faaeeafc770fc0bc 100644 (file)
@@ -7290,6 +7290,9 @@ static void logic_players(void)
 
   for (i = 0; i < MAX_PLAYERS; i++)
   {
+    if (!ply[i].alive)
+      continue;
+
     /* check for wrap-around movement */
     if (ply[i].x < lev.left ||
        ply[i].x > lev.right - 1)