diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 13:58:26 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 13:58:26 +0100 |
commit | ec9103d9b70113ae109688b7bbaae07ad31a1d1b (patch) | |
tree | 1bc25f3e3a0ec0cb5e2a7cbdaa53b318d53a46ff | |
parent | f3e4d3e2f3ea0cf4558cfa9a5ceeebf171c9df15 (diff) |
Reformatted player_num_active_boards()
-rw-r--r-- | FICS/playerdb.c | 20 |
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 |