Replace calls to window_set_visible in DoPlayerDead() with stop/start_time()

This is so game_flush_inputs() isn't called - part of change allowing player to respawn and begin moving with the same keypress. With this commit, you can use this feature with the 'when dead, respawn by pressing the Fire key' option - i.e. hold down movement key, then press fire key to respawn.
This commit is contained in:
Chris Taylor 2017-02-07 13:22:30 +08:00 committed by kreatordxx
parent 7ab97744c4
commit 88b5e616a9

View file

@ -1467,8 +1467,8 @@ window_event_result DoPlayerDead()
{
auto result = window_event_result::handled;
if (Game_wind)
window_set_visible(Game_wind, 0);
if (!(((Game_mode & GM_MULTI) && (Newdemo_state != ND_STATE_PLAYBACK)) && (!Endlevel_sequence)))
stop_time();
reset_palette_add();
@ -1560,8 +1560,8 @@ window_event_result DoPlayerDead()
digi_sync_sounds();
if (Game_wind)
window_set_visible(Game_wind, 1);
if (!(((Game_mode & GM_MULTI) && (Newdemo_state != ND_STATE_PLAYBACK)) && (!Endlevel_sequence)))
start_time();
reset_time();
return result;