summaryrefslogtreecommitdiffstats
path: root/mbbsd/gomo.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-28 22:42:26 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-28 22:42:26 +0800
commit06807c722a63e2e1ba2e446e57b9f82254599180 (patch)
treecca563d7751a905f97ed39e28ef4f15bb765008d /mbbsd/gomo.c
parent544b6475f029f5396bea9ebca0994111e74d1200 (diff)
downloadpttbbs-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/gomo.c')
-rw-r--r--mbbsd/gomo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 872648e5..d1487b4e 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -27,6 +27,7 @@ typedef char (*board_p)[BRDSIZ];
#endif
static void gomo_init_user(const userinfo_t* uinfo, ChessUser* user);
+static void gomo_init_user_userec(const userec_t* urec, ChessUser* user);
static void gomo_init_board(board_t board);
static void gomo_drawline(const ChessInfo* info, int line);
static void gomo_movecur(int r, int c);
@@ -41,6 +42,7 @@ static void gomo_genlog(ChessInfo* info, FILE* fp, ChessGameResult result);
ChessActions gomo_actions = {
&gomo_init_user,
+ &gomo_init_user_userec,
(void (*)(void*)) &gomo_init_board,
&gomo_drawline,
&gomo_movecur,