From: Holger Schemel Date: Sun, 8 Oct 2023 12:01:10 +0000 (+0200) Subject: fixed bug with causing explosion instead of killing player directly X-Git-Tag: 4.3.7.0~9 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8b2b9514de887390cf48f3f682bb9956784f261e;p=rocksndiamonds.git fixed bug with causing explosion instead of killing player directly While the final effect is the same (player is killed), the player was killed by an explosion before (causing a "double explosion" when the player itself exploded when being killed by the explosion), while the player is killed directly now, preventing the double explosion. --- diff --git a/src/game.c b/src/game.c index ea305289..ef117c8f 100644 --- a/src/game.c +++ b/src/game.c @@ -10648,7 +10648,7 @@ static void CreateFieldExt(int x, int y, int element, boolean is_change) if (IS_PLAYER(x, y) && !player_explosion_protected && IS_ACCESSIBLE(old_element) && !IS_ACCESSIBLE(new_element)) { - Bang(x, y); + KillPlayer(PLAYERINFO(x, y)); return; }