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:
parent
7ab97744c4
commit
88b5e616a9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue