fixed bug with CE replacing exploding player, causing half-dead player
authorHolger Schemel <info@artsoft.org>
Sun, 8 Oct 2023 21:33:54 +0000 (23:33 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 8 Oct 2023 21:39:47 +0000 (23:39 +0200)
commit84142e69a27536756a54fc9a78763c32d0eb8b46
treef19b19bcf19f03655fa775d48a57736934957ecf
parent8b2b9514de887390cf48f3f682bb9956784f261e
fixed bug with CE replacing exploding player, causing half-dead player

This bug could happen when a player was just exploding (for whatever
reason) and an adjacent CE replaced the explosion's center element
with something else, leading to the player not being totally removed,
potentially causing some strange effects afterwards.

This change adds some cleanup required to prevent such cases.
src/game.c