Don't abort ready timer if the game is in Confirm state draft
authorS.D.
Thu, 06 Oct 2022 20:58:54 +0300
changeset 15907 a323e1954a6f
parent 15905 bf92592915c6
child 15908 014f4edd0421
Don't abort ready timer if the game is in Confirm state
hedgewars/uInputHandler.pas
--- a/hedgewars/uInputHandler.pas	Wed Oct 05 22:39:07 2022 +0300
+++ b/hedgewars/uInputHandler.pas	Thu Oct 06 20:58:54 2022 +0300
@@ -237,7 +237,7 @@
     // Check if the keypress should end the ready phase.
     // Camera movement keys are "safe" since its equivalent to moving the mouse,
     // which also does not end the ready phase.
-    readyAborter:= (curBind <> '+cur_u') and (curBind <> '+cur_d') and (curBind <> '+cur_l') and (curBind <> '+cur_r');
+    readyAborter:= (GameState <> gsConfirm) and (curBind <> '+cur_u') and (curBind <> '+cur_d') and (curBind <> '+cur_l') and (curBind <> '+cur_r');
 
     if (code < cKeyMaxIndex - 2) // means not mouse buttons
         and KeyDown