From f7471af2d6859286f12df53eb4344c3fe82e36b3 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Tue, 7 Feb 2017 13:27:34 +0800 Subject: [PATCH] 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'. --- similar/main/gamecntl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/similar/main/gamecntl.cpp b/similar/main/gamecntl.cpp index c2c3f5a8c..9139508a2 100644 --- a/similar/main/gamecntl.cpp +++ b/similar/main/gamecntl.cpp @@ -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();