diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-28 22:42:26 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-28 22:42:26 +0800 |
commit | 06807c722a63e2e1ba2e446e57b9f82254599180 (patch) | |
tree | cca563d7751a905f97ed39e28ef4f15bb765008d /mbbsd/chc.c | |
parent | 544b6475f029f5396bea9ebca0994111e74d1200 (diff) | |
download | pttbbs-06807c722a63e2e1ba2e446e57b9f82254599180.tar pttbbs-06807c722a63e2e1ba2e446e57b9f82254599180.tar.gz pttbbs-06807c722a63e2e1ba2e446e57b9f82254599180.tar.bz2 pttbbs-06807c722a63e2e1ba2e446e57b9f82254599180.tar.lz pttbbs-06807c722a63e2e1ba2e446e57b9f82254599180.tar.xz pttbbs-06807c722a63e2e1ba2e446e57b9f82254599180.tar.zst pttbbs-06807c722a63e2e1ba2e446e57b9f82254599180.zip |
try using userec_t to initialize ChessUser when failed to get userinfo_t
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3106 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chc.c')
-rw-r--r-- | mbbsd/chc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c index 37831aa1..ec42a460 100644 --- a/mbbsd/chc.c +++ b/mbbsd/chc.c @@ -38,6 +38,7 @@ typedef struct { /* chess framework action functions */ static void chc_init_user(const userinfo_t *uinfo, ChessUser *user); +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); @@ -99,6 +100,7 @@ static char * const hint_str[] = { static const ChessActions chc_actions = { &chc_init_user, + &chc_init_user_userec, (void (*) (void*)) &chc_init_board, &chc_drawline, &chc_movecur, |