From ab6ade6754ad1957c6c77e2adcee13f9d1be6786 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 2 Apr 2024 21:45:08 +0200 Subject: Revised DisplayRankHead() --- FICS/ratings.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'FICS') diff --git a/FICS/ratings.c b/FICS/ratings.c index d377fd9..32ba932 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1041,18 +1041,19 @@ PUBLIC void UpdateRank(int type, char *addName, } #endif -PRIVATE void DisplayRankHead(int p, int show) +PRIVATE void +DisplayRankHead(int p, int show) { - char Line[MAX_STRING_LENGTH]; - - Line[0] = '\0'; - if (CheckFlag(show, SHOW_BLITZ)) - strcat(Line, " Blitz "); - if (CheckFlag(show, SHOW_STANDARD)) - strcat(Line, " Standard "); - if (CheckFlag(show, SHOW_WILD)) - strcat(Line, " Wild"); - pprintf(p, "%s\n\n", Line); + char Line[MAX_STRING_LENGTH] = { '\0' }; + + if (CheckFlag(show, SHOW_BLITZ)) + strcat(Line, " Blitz "); + if (CheckFlag(show, SHOW_STANDARD)) + strcat(Line, " Standard "); + if (CheckFlag(show, SHOW_WILD)) + strcat(Line, " Wild"); + + pprintf(p, "%s\n\n", Line); } PRIVATE int -- cgit v1.2.3