summaryrefslogtreecommitdiffstats
path: root/mbbsd/chess.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-10 09:47:34 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-10 09:47:34 +0800
commit4fe6fa6ea16743f6e6f265e1131df3bff3767116 (patch)
tree06fe4785b0e53dc726d3d720e31de1b998d8a231 /mbbsd/chess.c
parentb9f694e971dd74723e1cf3cd837b385c02820194 (diff)
downloadpttbbs-4fe6fa6ea16743f6e6f265e1131df3bff3767116.tar
pttbbs-4fe6fa6ea16743f6e6f265e1131df3bff3767116.tar.gz
pttbbs-4fe6fa6ea16743f6e6f265e1131df3bff3767116.tar.bz2
pttbbs-4fe6fa6ea16743f6e6f265e1131df3bff3767116.tar.lz
pttbbs-4fe6fa6ea16743f6e6f265e1131df3bff3767116.tar.xz
pttbbs-4fe6fa6ea16743f6e6f265e1131df3bff3767116.tar.zst
pttbbs-4fe6fa6ea16743f6e6f265e1131df3bff3767116.zip
* fix chc watching SEGV bug
* chc.[ch] and chess.[ch] code clean up git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3022 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chess.c')
-rw-r--r--mbbsd/chess.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/chess.c b/mbbsd/chess.c
index 04a05f03..d6b1a292 100644
--- a/mbbsd/chess.c
+++ b/mbbsd/chess.c
@@ -1089,6 +1089,9 @@ NewChessInfo(const ChessActions* actions, const ChessConstants* constants,
ChessInfo* info =
(ChessInfo*) calloc(1, sizeof(ChessInfo) + constants->step_entry_size);
+ if (mode == CHESS_MODE_PERSONAL)
+ strcpy(currutmp->mateid, cuser.userid);
+
/* compiler don't know it's actually const... */
info->actions = (ChessActions*) actions;
info->constants = (ChessConstants*) constants;