From: Holger Schemel Date: Tue, 18 Feb 2020 17:48:38 +0000 (+0100) Subject: fixed checking position of inactive players X-Git-Tag: 4.2.0.0~98 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=09a267752042c310bcc54bd0b87efeef3b531bf3;p=rocksndiamonds.git fixed checking position of inactive players --- diff --git a/src/game_em/logic.c b/src/game_em/logic.c index 2e959ffe..9e3b690f 100644 --- a/src/game_em/logic.c +++ b/src/game_em/logic.c @@ -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)