mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
Prevent on-death-action reloads from activating specials
Co-Authored-By: Roman Fomin <rfomin@gmail.com>
This commit is contained in:
parent
97c344b28a
commit
ebf3bd6a6e
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "doomstat.h"
|
#include "doomstat.h"
|
||||||
#include "d_event.h"
|
#include "d_event.h"
|
||||||
|
#include "m_input.h"
|
||||||
#include "r_main.h"
|
#include "r_main.h"
|
||||||
#include "p_map.h"
|
#include "p_map.h"
|
||||||
#include "p_spec.h"
|
#include "p_spec.h"
|
||||||
@ -340,6 +341,8 @@ void P_DeathThink (player_t* player)
|
|||||||
char *file = G_SaveGameName(savegameslot);
|
char *file = G_SaveGameName(savegameslot);
|
||||||
G_LoadGame(file, savegameslot, false);
|
G_LoadGame(file, savegameslot, false);
|
||||||
free(file);
|
free(file);
|
||||||
|
// [Woof!] prevent on-death-action reloads from activating specials
|
||||||
|
M_InputGameDeactivate(input_use);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
player->playerstate = PST_REBORN;
|
player->playerstate = PST_REBORN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user