From 753606110fa28975946cf6c947d58dcd7560101d Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 30 Apr 2024 07:31:32 +0200 Subject: Reformatted game_count() --- FICS/gamedb.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'FICS') diff --git a/FICS/gamedb.c b/FICS/gamedb.c index b4ace29..ce3d69f 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -1732,15 +1732,18 @@ PUBLIC void game_write_complete(int g, int isDraw, char *EndSymbol) write_g_out(g, fname, 10, isDraw, EndSymbol, parray[bp].name, &now); } -PUBLIC int game_count(void) +PUBLIC int +game_count(void) { - int g, count = 0; + int g, count = 0; - for (g = 0; g < g_num; g++) { - if ((garray[g].status == GAME_ACTIVE) || (garray[g].status == GAME_EXAMINE)) - count++; - } - if (count > game_high) - game_high = count; - return count; + for (g = 0; g < g_num; g++) { + if (garray[g].status == GAME_ACTIVE || + garray[g].status == GAME_EXAMINE) + count++; + } + + if (count > game_high) + game_high = count; + return count; } -- cgit v1.2.3