From: Holger Schemel Date: Mon, 19 Oct 2020 21:05:45 +0000 (+0200) Subject: minor code improvement X-Git-Tag: 4.2.1.0~28 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e24c252d7074663a752b2b82f577ef69c901c6d6;p=rocksndiamonds.git minor code improvement --- diff --git a/src/screens.c b/src/screens.c index 3b9504bc..c62ffec9 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4072,12 +4072,7 @@ static void setTypeNameValues(char *name, int *font, boolean success) return; if (success) - { - node->color = FC_RED; - - if (strEqual(name, EMPTY_PLAYER_NAME)) - node->color = FC_BLUE; - } + node->color = (strEqual(name, EMPTY_PLAYER_NAME) ? FC_BLUE : FC_RED); *font = FONT_TEXT_1 + node->color; }