aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/ratings.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-02 18:06:31 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-02 18:06:31 +0200
commit1f417689ed929a65549f036e0a44e2d47a1ee8a8 (patch)
tree0f67f90cdc1b7d2da6ffb49a9b686a34e2b3fe88 /FICS/ratings.c
parent9ab3ef78312b118159eb4b9c382f48958bbc3386 (diff)
Reformatted CountAbove()
Diffstat (limited to 'FICS/ratings.c')
-rw-r--r--FICS/ratings.c15
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