From: Holger Schemel Date: Sat, 24 Oct 2020 21:51:16 +0000 (+0200) Subject: moved function call to redraw player name before opening request dialogs X-Git-Tag: 4.2.1.0~10 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=6781b73dc16af00b561fb6311ebf1a3e6851053b;p=rocksndiamonds.git moved function call to redraw player name before opening request dialogs --- 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))