moved function call to redraw player name before opening request dialogs
authorHolger Schemel <info@artsoft.org>
Sat, 24 Oct 2020 21:51:16 +0000 (23:51 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 23:58:00 +0000 (00:58 +0100)
src/screens.c

index 22d3887bc8420e4cec60845b06e0abd1e3add341..e5741bc01bd5bf81836133131ad40b71eba995ce 100644 (file)
@@ -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))