aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-04 15:49:11 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-04 15:49:11 +0200
commit7ed4d3b97897d16e88284209e50de66f8eb74f3d (patch)
treecfa67bddb28a2e2a931fad153f7516bb826819db /FICS
parent81a16771434cb05234f59c8af77110cd2bbcd218 (diff)
Reformatted send_boards()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/gamedb.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 9758271..8554df3 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -294,18 +294,19 @@ PUBLIC void send_board_to(int g, int p)
}
}
-PUBLIC void send_boards(int g)
+PUBLIC void
+send_boards(int g)
{
- int p;
- simul_info_t *simInfo = &parray[garray[g].white].simul_info;
-
- if (simInfo->numBoards == 0 || simInfo->boards[simInfo->onBoard] == g)
- for (p = 0; p < p_num; p++) {
- if (parray[p].status == PLAYER_EMPTY)
- continue;
- if (player_is_observe(p, g) || (parray[p].game == g))
- send_board_to(g, p);
- }
+ simul_info_t *simInfo = &parray[garray[g].white].simul_info;
+
+ if (simInfo->numBoards == 0 || simInfo->boards[simInfo->onBoard] == g) {
+ for (int p = 0; p < p_num; p++) {
+ if (parray[p].status == PLAYER_EMPTY)
+ continue;
+ if (player_is_observe(p, g) || (parray[p].game == g))
+ send_board_to(g, p);
+ }
+ }
}
PUBLIC void