aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index a275c4f..566cb16 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1841,16 +1841,20 @@ PUBLIC int player_goto_simulgame_bynum(int p, int num)
return player_goto_board(p, on);
}
-PUBLIC int player_num_active_boards(int p)
+PUBLIC int
+player_num_active_boards(int p)
{
- int count = 0, i;
+ int count = 0;
- if (!parray[p].simul_info.numBoards)
- return 0;
- for (i = 0; i < parray[p].simul_info.numBoards; i++)
- if (parray[p].simul_info.boards[i] >= 0)
- count++;
- return count;
+ if (!parray[p].simul_info.numBoards)
+ return 0;
+
+ for (int i = 0; i < parray[p].simul_info.numBoards; i++) {
+ if (parray[p].simul_info.boards[i] >= 0)
+ count++;
+ }
+
+ return count;
}
PUBLIC int