From: Holger Schemel Date: Wed, 21 Oct 2020 00:27:49 +0000 (+0200) Subject: changed checking for typing on name selection screen X-Git-Tag: 4.2.1.0~13 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=67e0faa134188a8b68a2af05f03923c71507267b;p=rocksndiamonds.git changed checking for typing on name selection screen --- diff --git a/src/screens.c b/src/screens.c index 3638840e..1a906f5a 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4045,7 +4045,7 @@ static void getTypeNameValues(char *name, struct TextPosInfo *pos, int *xpos) *pos = *mci->pos_input; - if (setup.multiple_users) + if (game_status == GAME_MODE_PSEUDO_TYPENAMES) { TreeInfo *ti = player_name_current; int first_entry = ti->cl_first; @@ -4090,7 +4090,7 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos, if (strEqual(name, "")) strcpy(name, EMPTY_PLAYER_NAME); - if (setup.multiple_users) + if (game_status == GAME_MODE_PSEUDO_TYPENAMES) { if (node == NULL) // should not happen return; @@ -4110,7 +4110,7 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos, // change name of edited user in global list of user names setString(&global.user_names[type_name_nr], name); - if (setup.multiple_users) + if (game_status == GAME_MODE_PSEUDO_TYPENAMES) { // change name of edited user in local menu tree structure setString(&node->name, name); @@ -4132,7 +4132,7 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos, // save setup of edited user SaveSetup(); - if (setup.multiple_users) + if (game_status == GAME_MODE_PSEUDO_TYPENAMES) { // restore currently active user user.nr = last_user_nr;