OSDN Git Service

For the Mac front end, only allow saving or the send command menu actions when the...
authorEric Branlund <ebranlund@fastmail.com>
Sat, 15 Oct 2022 01:38:11 +0000 (19:38 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Sat, 15 Oct 2022 01:38:11 +0000 (19:38 -0600)
src/main-cocoa.mm

index a11cfd0..d6d6617 100644 (file)
@@ -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;
 }