# HG changeset patch # User S.D. # Date 1667147369 -7200 # Node ID 08b88572b1c2a7adca463d7699e468eda3cf12b5 # Parent 7409084d891f97de567d35bbcb6b7ad0edff0e7c Fix commit a323e1954a6f, allow exiting Confirm state by keypress in addition to mousepress without aborting the ready timer diff -r 7409084d891f -r 08b88572b1c2 hedgewars/uInputHandler.pas --- a/hedgewars/uInputHandler.pas Sun Oct 16 20:15:57 2022 +0300 +++ b/hedgewars/uInputHandler.pas Sun Oct 30 18:29:29 2022 +0200 @@ -237,7 +237,8 @@ // 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:= (GameState <> gsConfirm) and (curBind <> '+cur_u') and (curBind <> '+cur_d') and (curBind <> '+cur_l') and (curBind <> '+cur_r'); + // Also allow exiting Confirm state (quit prompt) without aborting the ready timer. + readyAborter:= not ((GameState = gsConfirm) and (curBind = 'quit')) 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