diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-10 09:47:34 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-10 09:47:34 +0800 |
commit | 4fe6fa6ea16743f6e6f265e1131df3bff3767116 (patch) | |
tree | 06fe4785b0e53dc726d3d720e31de1b998d8a231 /mbbsd/chess.c | |
parent | b9f694e971dd74723e1cf3cd837b385c02820194 (diff) | |
download | pttbbs-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.c | 3 |
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; |