From 8fb316365e886fa52ad6ec6ad18fa3f817c3dd54 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 19 Oct 2020 01:12:01 +0200 Subject: [PATCH] changed default player name to "no name" for all but the first user --- src/files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index cb4e6d41..64461c5a 100644 --- 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; -- 2.34.1