From d58276a51f2f550027d27e10105d00391c805ad9 Mon Sep 17 00:00:00 2001 From: scw Date: Fri, 11 Feb 2005 13:53:00 +0000 Subject: Fix gomoku log problem. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2492 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/gomo.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mbbsd/gomo.c') diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index 5d911671..ab08d644 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -186,7 +186,7 @@ HO_log(Horder_t *pool, FILE* fp, char *mate) int i; Horder_t *ptr = pool; - for (i = 1; i < 17; i++) + for (i = 1; i < 18; i++) fprintf(fp, "%.*s\n", big_picture[i].len, big_picture[i].data); if (mate != NULL) @@ -235,6 +235,10 @@ HO_log_board(Horder_t* pool, char *mate) char buf[200]; fileheader_t log_header; FILE* fp; + int bid; + + if ((bid = getbnum(GLOBAL_FIVECHESS_LOG)) == 0) + return; setbpath(buf, GLOBAL_FIVECHESS_LOG); stampfile(buf, &log_header); @@ -250,6 +254,8 @@ HO_log_board(Horder_t* pool, char *mate) setbdir(buf, GLOBAL_FIVECHESS_LOG); append_record(buf, &log_header, sizeof(log_header)); + + setbtotal(bid); } } #endif -- cgit v1.2.3