OSDN Git Service

Changed to keep the save menu entry and command menu entries disabled during player...
authorEric Branlund <ebranlund@fastmail.com>
Wed, 29 Jan 2020 09:33:33 +0000 (01:33 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Wed, 29 Jan 2020 16:26:05 +0000 (08:26 -0800)
src/main-cocoa.m

index f2d3b91..f8b5087 100644 (file)
@@ -4127,8 +4127,11 @@ static void hook_quit(const char * str)
     else if( sel == @selector(sendAngbandCommand:) ||
             sel == @selector(saveGame:) )
     {
-        /* we only want to be able to send commands during an active game */
-        return !!game_in_progress;
+        /*
+         * we only want to be able to send commands during an active game
+         * after the birth screens
+         */
+        return !!game_in_progress && character_generated;
     }
     else return YES;
 }