OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6488580
)
Changed to keep the save menu entry and command menu entries disabled during player...
author
Eric Branlund
<ebranlund@fastmail.com>
Wed, 29 Jan 2020 09:33:33 +0000
(
01:33
-0800)
committer
Eric Branlund
<ebranlund@fastmail.com>
Wed, 29 Jan 2020 16:26:05 +0000
(08:26 -0800)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
f2d3b91
..
f8b5087
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-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;
}