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:
d13a083
)
Set player_egid before calling init_angband(). For good measure also set player_euid...
author
Eric Branlund
<ebranlund@fastmail.com>
Sun, 5 Apr 2020 23:58:23 +0000
(16:58 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Sun, 5 Apr 2020 23:58:23 +0000
(16:58 -0700)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
16aada0
..
d9adfb2
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-5693,12
+5693,13
@@
static void play_sound(int event)
/* Register the sound hook */
/* sound_hook = play_sound; */
- /* Initialise game */
- init_angband();
-
/* Initialize some save file stuff */
+ player_euid = geteuid();
player_egid = getegid();
+ /* Initialise game */
+ init_angband();
+
/* We are now initialized */
initialized = TRUE;