From: Holger Schemel Date: Tue, 27 Oct 2020 23:26:10 +0000 (+0100) Subject: fixed redrawing previous player name when aborting typing player name X-Git-Tag: 4.2.1.0~5 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cccb83dbdafab8352529ab45e116befd9050c407;p=rocksndiamonds.git fixed redrawing previous player name when aborting typing player name --- diff --git a/src/screens.c b/src/screens.c index c37ca979..4e41573b 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4110,12 +4110,12 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos, if (strEqual(name, "")) strcpy(name, EMPTY_PLAYER_NAME); + setTypeNameValues_Name(name, pos); + // if player name not changed, no further action required if (strEqual(name, type_name_last)) return; - setTypeNameValues_Name(name, pos); - // redraw player name before (possibly) opening request dialogs drawTypeNameText(name, pos, FALSE);