From ebf3bd6a6ef2c44657d4168165f5092e7918ee79 Mon Sep 17 00:00:00 2001 From: Julia Nechaevskaya Date: Mon, 19 Feb 2024 11:09:29 +0300 Subject: [PATCH] Prevent on-death-action reloads from activating specials Co-Authored-By: Roman Fomin --- src/p_user.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index 0993f65b..b3a3d700 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -21,6 +21,7 @@ #include "doomstat.h" #include "d_event.h" +#include "m_input.h" #include "r_main.h" #include "p_map.h" #include "p_spec.h" @@ -340,6 +341,8 @@ void P_DeathThink (player_t* player) char *file = G_SaveGameName(savegameslot); G_LoadGame(file, savegameslot, false); free(file); + // [Woof!] prevent on-death-action reloads from activating specials + M_InputGameDeactivate(input_use); } else player->playerstate = PST_REBORN;