From 4c520550cca32522e89fe01e2e0d3d172ed6b86d Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 15 Apr 2008 02:04:38 +0000 Subject: - bbs: fix utmp_brcid out-of-sync on 's' select. - visio: change unified handle (VSOREF) to typed ref, and utilize new APIs git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4165 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/gomo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mbbsd/gomo.c') diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index b18fe5d0..5507913f 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -422,16 +422,17 @@ gomo_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) { char buf[ANSILINELEN] = ""; const int nStep = info->history.used; - int i, x, y; + int i; + VREFCUR cur; - getyx(&y, &x); + cur = vcur_save(); for (i = 1; i <= 18; i++) { move(i, 0); inansistr(buf, sizeof(buf)-1); fprintf(fp, "%s\n", buf); } - move(y, x); + vcur_restore(cur); fprintf(fp, "\n"); fprintf(fp, "按 z 可進入打譜模式\n"); -- cgit v1.2.3