From: Holger Schemel Date: Sun, 18 Oct 2020 23:12:01 +0000 (+0200) Subject: changed default player name to "no name" for all but the first user X-Git-Tag: 4.2.1.0~36 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8fb316365e886fa52ad6ec6ad18fa3f817c3dd54;p=rocksndiamonds.git changed default player name to "no name" for all but the first user --- 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;