diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-15 10:04:38 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-15 10:04:38 +0800 |
commit | 4c520550cca32522e89fe01e2e0d3d172ed6b86d (patch) | |
tree | 60fc322c61a50438a8043e8cd48c845a5ee41ea7 /mbbsd/gomo.c | |
parent | a942aaef1cdde595f482a853e6a1291c04b9d2c7 (diff) | |
download | pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.gz pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.bz2 pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.lz pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.xz pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.zst pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.zip |
- 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
Diffstat (limited to 'mbbsd/gomo.c')
-rw-r--r-- | mbbsd/gomo.c | 7 |
1 files changed, 4 insertions, 3 deletions
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"); |