diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-10-08 21:51:52 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-10-08 21:51:52 +0800 |
commit | c553b99da5b4df4a76caf3e5975496f8d040a817 (patch) | |
tree | 350483312e3d45faac119d53be8b23573ba483b2 | |
parent | 5884cbc7af026195dac676763e901c0042364afc (diff) | |
download | pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.gz pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.bz2 pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.lz pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.xz pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.tar.zst pttbbs-c553b99da5b4df4a76caf3e5975496f8d040a817.zip |
add article header for chess log. also hint user the replay log hotkey 'z'.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/chc.c | 3 | ||||
-rw-r--r-- | mbbsd/chess.c | 9 | ||||
-rw-r--r-- | mbbsd/go.c | 4 | ||||
-rw-r--r-- | mbbsd/gomo.c | 4 |
4 files changed, 17 insertions, 3 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c index 6a77886b..19fce8fb 100644 --- a/mbbsd/chc.c +++ b/mbbsd/chc.c @@ -326,6 +326,9 @@ chc_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) board_t board; int i; + fprintf(fp, "�� z �i�i�J���мҦ�\n"); + fprintf(fp, "\n"); + if (info->myturn == RED) fprintf(fp, "%s(%d) V.S. %s(%d)\n", info->user1.userid, info->user1.orig_rating, diff --git a/mbbsd/chess.c b/mbbsd/chess.c index f243b208..04344d80 100644 --- a/mbbsd/chess.c +++ b/mbbsd/chess.c @@ -922,13 +922,16 @@ ChessGenLogGlobal(ChessInfo* info, ChessGameResult result) fp = fopen(fname, "w"); if (fp != NULL) { - info->actions->genlog(info, fp, result); - fclose(fp); - strlcpy(log_header.owner, "[���о����H]", sizeof(log_header.owner)); snprintf(log_header.title, sizeof(log_header.title), "[����] %s VS %s", info->user1.userid, info->user2.userid); + fprintf(fp, "�@��: %s �ݪO: %s\n���D: %s \n", log_header.owner, info->constants->log_board, log_header.title); + fprintf(fp, "�ɶ�: %s\n", ctime4(&now)); + + info->actions->genlog(info, fp, result); + fclose(fp); + setbdir(fname, info->constants->log_board); append_record(fname, &log_header, sizeof(log_header)); @@ -838,6 +838,10 @@ go_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) for (i = 1; i <= 22; i++) fprintf(fp, "%.*s\n", big_picture[i].len, big_picture[i].data); + fprintf(fp, "\n"); + fprintf(fp, "�� z �i�i�J���мҦ�\n"); + fprintf(fp, "\n"); + if (sethand) { fprintf(fp, "[ 1] �� %d �l\n ", sethand); i = 1; diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index d1c1bf16..71f0bbfc 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -424,6 +424,10 @@ gomo_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) for (i = 1; i <= 18; i++) fprintf(fp, "%.*s\n", big_picture[i].len, big_picture[i].data); + fprintf(fp, "\n"); + fprintf(fp, "�� z �i�i�J���мҦ�\n"); + fprintf(fp, "\n"); + fprintf(fp, "<gomokulog>\nblack:%s\nwhite:%s\n", info->myturn ? info->user1.userid : info->user2.userid, info->myturn ? info->user2.userid : info->user1.userid); |