From 5464cd9ac687ea1bc74420e069fdfcf733be44a5 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 4 Apr 2024 02:24:47 +0200 Subject: Splitted if statements --- FICS/ratings.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'FICS') diff --git a/FICS/ratings.c b/FICS/ratings.c index 7edb281..2ea978a 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -750,11 +750,13 @@ rating_update(int g) rating_add(w_stats->rating, garray[g].type); rating_add(b_stats->rating, garray[g].type); - if ((w_stats->rating > w_stats->best) && (is_active(w_stats->num))) { + if (w_stats->rating > w_stats->best && + is_active(w_stats->num)) { w_stats->best = w_stats->rating; w_stats->whenbest = time(NULL); } - if ((b_stats->rating > b_stats->best) && (is_active(b_stats->num))) { + if (b_stats->rating > b_stats->best && + is_active(b_stats->num)) { b_stats->best = b_stats->rating; b_stats->whenbest = time(NULL); } -- cgit v1.2.3