aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gameproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-30 10:33:01 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-30 10:33:01 +0100
commit03d6d9e9e91de46e3af2b115c2cb1117139a7a44 (patch)
tree786f153f7f104fec319b0ed38a8468f7c00ae48d /FICS/gameproc.c
parent02baf5426ffd83f17533949359c2ab77fee91f56 (diff)
Reformatted functions
Diffstat (limited to 'FICS/gameproc.c')
-rw-r--r--FICS/gameproc.c51
1 files changed, 28 insertions, 23 deletions
diff --git a/FICS/gameproc.c b/FICS/gameproc.c
index 31177b4..3dd6ce3 100644
--- a/FICS/gameproc.c
+++ b/FICS/gameproc.c
@@ -1734,34 +1734,39 @@ PUBLIC int com_simallabort(int p, param_list param)
return COM_OK;
}
-PUBLIC int com_simadjourn(int p, param_list param)
+PUBLIC int
+com_simadjourn(int p, param_list param)
{
- if (!parray[p].simul_info.numBoards) {
- pprintf(p, "You are not giving a simul.\n");
- return COM_OK;
- }
- player_decline_offers(p, -1, -PEND_SIMUL);
- game_ended(parray[p].simul_info.boards[parray[p].simul_info.onBoard],
- WHITE, END_ADJOURN);
- return COM_OK;
+ if (!parray[p].simul_info.numBoards) {
+ pprintf(p, "You are not giving a simul.\n");
+ return COM_OK;
+ }
+
+ player_decline_offers(p, -1, -PEND_SIMUL);
+ game_ended(parray[p].simul_info.boards[parray[p].simul_info.onBoard],
+ WHITE, END_ADJOURN);
+
+ return COM_OK;
}
-PUBLIC int com_simalladjourn(int p, param_list param)
+PUBLIC int
+com_simalladjourn(int p, param_list param)
{
- int i;
+ if (!parray[p].simul_info.numBoards) {
+ pprintf(p, "You are not giving a simul.\n");
+ return COM_OK;
+ }
- if (!parray[p].simul_info.numBoards) {
- pprintf(p, "You are not giving a simul.\n");
- return COM_OK;
- }
- player_decline_offers(p, -1, -PEND_SIMUL);
- for (i = 0; i < parray[p].simul_info.numBoards; i++) {
- if (parray[p].simul_info.boards[i] >= 0) {
- game_ended(parray[p].simul_info.boards[i],
- WHITE, END_ADJOURN);
- }
- }
- return COM_OK;
+ player_decline_offers(p, -1, -PEND_SIMUL);
+
+ for (int i = 0; i < parray[p].simul_info.numBoards; i++) {
+ if (parray[p].simul_info.boards[i] >= 0) {
+ game_ended(parray[p].simul_info.boards[i], WHITE,
+ END_ADJOURN);
+ }
+ }
+
+ return COM_OK;
}
PUBLIC int