From f6aa8fcba3b4bc0ca1054152bd1b9937522a836d Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Fri, 14 Oct 2022 19:38:11 -0600 Subject: [PATCH] For the Mac front end, only allow saving or the send command menu actions when the core game is waring for a player command. --- src/main-cocoa.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main-cocoa.mm b/src/main-cocoa.mm index a11cfd070..d6d66171f 100644 --- a/src/main-cocoa.mm +++ b/src/main-cocoa.mm @@ -40,6 +40,7 @@ #include "game-option/option-flags.h" #include "game-option/runtime-arguments.h" #include "game-option/special-options.h" +#include "io/input-key-acceptor.h" #include "system/angband-version.h" #include "system/player-type-definition.h" #include "system/system-variables.h" @@ -6037,9 +6038,10 @@ static void init_windows(void) { /* * we only want to be able to send commands during an active game - * after the birth screens + * after the birth screens when the core is waring for a player + * command */ - return !!game_in_progress && w_ptr->character_generated; + return !!game_in_progress && w_ptr->character_generated && inkey_flag; } else return YES; } -- 2.11.0