diff options
Diffstat (limited to 'FICS/ratings.c')
-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 |