projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc6719
)
changed default player name to "no name" for all but the first user
author
Holger Schemel
<info@artsoft.org>
Sun, 18 Oct 2020 23:12:01 +0000
(
01:12
+0200)
committer
Holger Schemel
<info@artsoft.org>
Sun, 13 Dec 2020 23:57:58 +0000
(
00:57
+0100)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index cb4e6d41820b938085efb01810ef0fd4f6e42362..64461c5acedc56d035121bf1be9354d6f33545f8 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-9192,9
+9192,10
@@
static char *get_corrected_login_name(char *login_name)
static void setSetupInfoToDefaults(struct SetupInfo *si)
{
+ char *player_name = (user.nr == 0 ? getLoginName() : EMPTY_PLAYER_NAME);
int i;
- si->player_name = get_corrected_login_name(
getLoginName()
);
+ si->player_name = get_corrected_login_name(
player_name
);
si->multiple_users = TRUE;