projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91ea9b
)
fixed checking position of inactive players
author
Holger Schemel
<info@artsoft.org>
Tue, 18 Feb 2020 17:48:38 +0000
(18:48 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 19 May 2020 16:19:58 +0000
(18:19 +0200)
src/game_em/logic.c
patch
|
blob
|
history
diff --git
a/src/game_em/logic.c
b/src/game_em/logic.c
index 2e959ffeeea12a38deb8a2f9113463a9b54fbcef..9e3b690f2a9c6b70127f3645faaeeafc770fc0bc 100644
(file)
--- 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)