From 6781b73dc16af00b561fb6311ebf1a3e6851053b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 24 Oct 2020 23:51:16 +0200 Subject: [PATCH] moved function call to redraw player name before opening request dialogs --- src/screens.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/screens.c b/src/screens.c index 22d3887b..e5741bc0 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4115,6 +4115,9 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos, setTypeNameValues_Name(name, pos); + // redraw player name before (possibly) opening request dialogs + drawTypeNameText(name, pos, FALSE); + int last_user_nr = user.nr; if (game_status == GAME_MODE_PSEUDO_TYPENAMES) @@ -4137,8 +4140,6 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos, if (game_status == GAME_MODE_PSEUDO_TYPENAMES || reset_setup) { - drawTypeNameText(name, pos, FALSE); - if (reset_setup) { if (Request("Reset setup values for this player?", REQ_ASK)) -- 2.34.1