diff options
Diffstat (limited to 'mbbsd/reversi.c')
-rw-r--r-- | mbbsd/reversi.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/reversi.c b/mbbsd/reversi.c index 6bc3f6df..ea64f35a 100644 --- a/mbbsd/reversi.c +++ b/mbbsd/reversi.c @@ -343,12 +343,18 @@ reversi_gameend(ChessInfo* info, ChessGameResult result) static void reversi_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) { + char buf[ANSILINELEN] = ""; const int nStep = info->history.used; - int i; + int i, x, y; - if (big_picture) + getyx(&y, &x); for (i = 2; i <= 21; i++) - fprintf(fp, "%.*s\n", big_picture[i].len, big_picture[i].data); + { + move(i, 0); + inansistr(buf, sizeof(buf)-1); + fprintf(fp, "%s\n", buf); + } + move(y, x); fprintf(fp, "\n"); fprintf(fp, "按 z 可進入打譜模式\n"); |