summaryrefslogtreecommitdiffstats
path: root/mbbsd/go.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 10:04:38 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 10:04:38 +0800
commit4c520550cca32522e89fe01e2e0d3d172ed6b86d (patch)
tree60fc322c61a50438a8043e8cd48c845a5ee41ea7 /mbbsd/go.c
parenta942aaef1cdde595f482a853e6a1291c04b9d2c7 (diff)
downloadpttbbs-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/go.c')
-rw-r--r--mbbsd/go.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/go.c b/mbbsd/go.c
index aca63de4..aa5451ca 100644
--- a/mbbsd/go.c
+++ b/mbbsd/go.c
@@ -834,8 +834,8 @@ go_genlog(ChessInfo* info, FILE* fp, ChessGameResult result)
const static char ColName[] = "ABCDEFGHJKLMNOPQRST";
const int nStep = info->history.used;
char buf[ANSILINELEN] = "";
- int i, x, y;
- int sethand = 0;
+ int i, sethand = 0;
+ VREFCUR cur;
if (nStep > 0) {
const go_step_t* const step =
@@ -844,14 +844,14 @@ go_genlog(ChessInfo* info, FILE* fp, ChessGameResult result)
sethand = step->loc.r;
}
- getyx(&y, &x);
+ cur = vcur_save();
for (i = 1; i <= 22; 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");