diff options
-rw-r--r-- | FICS/gameproc.c | 51 |
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 |