minor code improvement
authorHolger Schemel <info@artsoft.org>
Mon, 19 Oct 2020 21:30:19 +0000 (23:30 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 23:57:59 +0000 (00:57 +0100)
src/screens.c

index a5f249eef9e806895625ce487f99ce4320bb820f..7f4de2c74a8487ffb73c5dda0dc35b728f97e6fd 100644 (file)
@@ -4097,9 +4097,7 @@ static void setTypeNameValues(char *name, struct TextPosInfo *pos,
     pos->font = (node->color == FC_RED ? FONT_INPUT_1 : FONT_VALUE_OLD);
   }
 
-  if (!changed)
-    return;
-
+  // if player name not changed, no further action required
   if (strEqual(name, type_name_last))
     return;