From 8b2b9514de887390cf48f3f682bb9956784f261e Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 8 Oct 2023 14:01:10 +0200 Subject: [PATCH] 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. --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1