aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-30 07:31:32 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-30 07:31:32 +0200
commit753606110fa28975946cf6c947d58dcd7560101d (patch)
tree6ecae093724b7d6fde5643acd54ecd14f08c2d33
parent5dabef2707a826e50cd5ed2b2034b3c691d244ce (diff)
Reformatted game_count()
-rw-r--r--FICS/gamedb.c21
1 files changed, 12 insertions, 9 deletions
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;
}