diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-30 23:42:18 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-30 23:42:18 +0800 |
commit | 715542867ba891acf8c1fd6234f5d6ea2fc285f6 (patch) | |
tree | 35727b8664dce3eb0f7421dd0cbb28c6636c672b /mbbsd/chc.c | |
parent | 05df0b0f9445089d03f7a2933875b9c7266eb96e (diff) | |
download | pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.gz pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.bz2 pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.lz pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.xz pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.zst pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.zip |
Reversi (multiplayer othello) added
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chc.c')
-rw-r--r-- | mbbsd/chc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c index 19fce8fb..a4d3eeeb 100644 --- a/mbbsd/chc.c +++ b/mbbsd/chc.c @@ -42,7 +42,7 @@ static void chc_init_user_userec(const userec_t *urec, ChessUser *user); static void chc_init_board(board_t board); static void chc_drawline(const ChessInfo* info, int line); static void chc_movecur(int r, int c); -static void chc_prepare_play(ChessInfo* info); +static int chc_prepare_play(ChessInfo* info); static int chc_select(ChessInfo* info, rc_t scrloc, ChessGameResult* result); static void chc_prepare_step(ChessInfo* info, const void* step); static ChessGameResult chc_movechess(board_t board, const drc_t* move); @@ -105,7 +105,7 @@ static const ChessActions chc_actions = { &chc_drawline, &chc_movecur, &chc_prepare_play, - NULL, + NULL, /* process_key */ &chc_select, &chc_prepare_step, (ChessGameResult (*) (void*, const void*)) &chc_movechess, @@ -692,7 +692,7 @@ chc_init_user_userec(const userec_t *urec, ChessUser *user) user->orig_rating = user->rating; } -static void +static int chc_prepare_play(ChessInfo* info) { if (chc_ischeck((board_p) info->board, info->turn)) { @@ -701,6 +701,8 @@ chc_prepare_play(ChessInfo* info) bell(); } else info->warnmsg[0] = 0; + + return 0; } static int |