diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-04-02 21:45:08 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-04-02 21:45:08 +0200 |
commit | ab6ade6754ad1957c6c77e2adcee13f9d1be6786 (patch) | |
tree | b096c2fa8f063c8108cc5e6543157ac73851dc84 | |
parent | a055adb58728b4e4994778949b1befb4ffda534e (diff) |
Revised DisplayRankHead()
-rw-r--r-- | FICS/ratings.c | 23 |
1 files changed, 12 insertions, 11 deletions
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 |