aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gameproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-30 10:36:03 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-30 10:36:03 +0100
commite161b9e4bf0108c71f3326e11615f0e00f7c98d8 (patch)
tree9ee41287c06bc9fa3d80d5baaca306225ebe7805 /FICS/gameproc.c
parent03d6d9e9e91de46e3af2b115c2cb1117139a7a44 (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 3dd6ce3..9b16a1e 100644
--- a/FICS/gameproc.c
+++ b/FICS/gameproc.c
@@ -1704,34 +1704,39 @@ PUBLIC int com_simpass(int p, param_list param)
return COM_OK;
}
-PUBLIC int com_simabort(int p, param_list param)
+PUBLIC int
+com_simabort(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_ABORT);
- 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_ABORT);
+
+ return COM_OK;
}
-PUBLIC int com_simallabort(int p, param_list param)
+PUBLIC int
+com_simallabort(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_ABORT);
- }
- }
- 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_ABORT);
+ }
+ }
+
+ return COM_OK;
}
PUBLIC int