In ReadControls, continue executing code even if HandleDeathInput handled a key event

This allows the player to press a movement key to respawn after death, and the same keypress will cause the ship to move. Now this works with the option 'when dead, respawn by pressing any key' as well as 'when dead, respawn by pressing the Fire key'.
This commit is contained in:
Chris Taylor 2017-02-07 13:27:34 +08:00 committed by kreatordxx
parent 88b5e616a9
commit f7471af2d6

View file

@ -1866,8 +1866,7 @@ window_event_result ReadControls(const d_event &event)
(multi_sending_message[Player_num] || multi_defining_message)
)
)
if (HandleDeathInput(event))
return window_event_result::handled;
HandleDeathInput(event);
if (Newdemo_state == ND_STATE_PLAYBACK)
update_vcr_state();