diff options
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/gamedb.c | 21 |
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; } |