From: Holger Schemel Date: Mon, 19 Oct 2020 21:30:19 +0000 (+0200) Subject: minor code improvement X-Git-Tag: 4.2.1.0~22 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7899261335da12a5a88bf15e9bcd057e42423e3e;p=rocksndiamonds.git minor code improvement --- diff --git a/src/screens.c b/src/screens.c index a5f249ee..7f4de2c7 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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;