diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 10:51:53 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 10:51:53 +0100 |
commit | 2697db43013ef9f1fcb3c9d29f59debedb308224 (patch) | |
tree | 9934a56cef51c8134e452c3be2f418e17de03524 /FICS/gameproc.c | |
parent | 1bb854384904fc0fddc57af56c88eb1c4413dd4e (diff) |
Reformatted com_simnext()
Diffstat (limited to 'FICS/gameproc.c')
-rw-r--r-- | FICS/gameproc.c | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/FICS/gameproc.c b/FICS/gameproc.c index dd2122b..1c36c61 100644 --- a/FICS/gameproc.c +++ b/FICS/gameproc.c @@ -1591,29 +1591,33 @@ PUBLIC int com_gonum(int p, param_list param) return COM_OK; } -PUBLIC int com_simnext(int p, param_list param) +PUBLIC int +com_simnext(int p, param_list param) { - int on, g; + int on, g; - if (!parray[p].simul_info.numBoards) { - pprintf(p, "You are not giving a simul.\n"); - return COM_OK; - } - if (parray[p].simul_info.numBoards > 1) { - player_decline_offers(p, -1, -PEND_SIMUL); - on = parray[p].simul_info.onBoard; - g = parray[p].simul_info.boards[on]; - if (g >= 0) { - pprintf(garray[g].black, "\n"); - pprintf_highlight(garray[g].black, "%s", parray[p].name); - pprintf_prompt(garray[g].black, " is moving away from your board.\n"); - player_goto_next_board(p); - } - } else - pprintf(p, "You are only playing one board!\n"); - return COM_OK; -} + if (!parray[p].simul_info.numBoards) { + pprintf(p, "You are not giving a simul.\n"); + return COM_OK; + } + + if (parray[p].simul_info.numBoards > 1) { + player_decline_offers(p, -1, -PEND_SIMUL); + on = parray[p].simul_info.onBoard; + g = parray[p].simul_info.boards[on]; + if (g >= 0) { + pprintf(garray[g].black, "\n"); + pprintf_highlight(garray[g].black, "%s", + parray[p].name); + pprintf_prompt(garray[g].black, " is moving away from " + "your board.\n"); + player_goto_next_board(p); + } + } else + pprintf(p, "You are only playing one board!\n"); + return COM_OK; +} PUBLIC int com_simprev(int p, param_list param) |