From eb78e08e3e891b7b61a76d2f34bd4103a1105ed2 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 5 Apr 2025 19:39:49 +0200 Subject: DisplayTargetRank: added usage of int_diff() --- FICS/ratings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS') diff --git a/FICS/ratings.c b/FICS/ratings.c index 5f06ccc..70dc529 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1828,9 +1828,9 @@ DisplayTargetRank(int p, char *target, int show, int showComp) numAbove = CountAbove(numToShow, blitzRank, stdRank, wildRank, show); - blitzCount = (blitzRank - numAbove); - stdCount = (stdRank - numAbove); - wildCount = (wildRank - numAbove); + blitzCount = int_diff(__func__, blitzRank, numAbove); + stdCount = int_diff(__func__, stdRank, numAbove); + wildCount = int_diff(__func__, wildRank, numAbove); ShowRankLines(p, fb, fs, fw, blitzCount, stdCount, wildCount, numToShow, showComp, show, target); -- cgit v1.2.3