diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-04-02 18:06:31 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-04-02 18:06:31 +0200 |
commit | 1f417689ed929a65549f036e0a44e2d47a1ee8a8 (patch) | |
tree | 0f67f90cdc1b7d2da6ffb49a9b686a34e2b3fe88 | |
parent | 9ab3ef78312b118159eb4b9c382f48958bbc3386 (diff) |
Reformatted CountAbove()
-rw-r--r-- | FICS/ratings.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/FICS/ratings.c b/FICS/ratings.c index 1bfd10e..b43e0a5 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1339,15 +1339,16 @@ PRIVATE int ShowRankEntry(int p, FILE * fp, int count, int comp, } } -PRIVATE int CountAbove(int num, int blitz, int std, int wild, int which) +PRIVATE int +CountAbove(int num, int blitz, int std, int wild, int which) { - int max = blitz; + int max = blitz; - if (max < std) - max = std; - if (max < wild) - max = wild; - return (max <= (num + 1) / 2 ? max - 1 : (num + 1) / 2); + if (max < std) + max = std; + if (max < wild) + max = wild; + return (max <= (num + 1) / 2 ? max - 1 : (num + 1) / 2); } PRIVATE int |