changed default player name to "no name" for all but the first user
authorHolger Schemel <info@artsoft.org>
Sun, 18 Oct 2020 23:12:01 +0000 (01:12 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 23:57:58 +0000 (00:57 +0100)
src/files.c

index cb4e6d41820b938085efb01810ef0fd4f6e42362..64461c5acedc56d035121bf1be9354d6f33545f8 100644 (file)
@@ -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;