summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-03 21:09:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-03 21:09:17 +0800
commit8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba (patch)
tree7ce60f78181831648ececc658165b150c04cf7fb /mbbsd/pmore.c
parent74ceac39794d1f3744a4c14e0e48d787d538b5d0 (diff)
downloadpttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.gz
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.bz2
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.lz
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.xz
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.tar.zst
pttbbs-8f9dc9a65dc9b09b96c81b86156a067d1e1ea6ba.zip
- pmore: move ChessReplay (z) to outside.
- bbs: use 'now' to prevent time() system call. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3779 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 7cab8cd0..d82c721f 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -1675,7 +1675,11 @@ static const char * const pmore_help[] = {
// the line below is already aligned, because of the backslash.
"(o)/(\\) 選項設定/色彩顯示模式",
+
+#if defined (PMORE_USE_ASCII_MOVIE) || defined(RET_DOCHESSREPLAY)
"(p)/(z) 播放動畫/棋局打譜",
+#endif // defined(PMORE_USE_ASCII_MOVIE) || defined(RET_DOCHESSREPLAY)
+
"(Ctrl-T) 存入暫存檔",
"(q/←) (h/H/?/F1) 結束/本說明畫面",
#ifdef DEBUG
@@ -2097,6 +2101,11 @@ pmore(char *fpath, int promptend)
flExit = 1, retval = RET_DOSYSOPEDIT;
break;
#endif
+#ifdef RET_DOCHESSREPLAY
+ case 'z':
+ flExit = 1, retval = RET_DOCHESSREPLAY;
+ break;
+#endif
/* ------------------ EXITING KEYS ------------------ */
case 'A':
@@ -2422,9 +2431,6 @@ pmore(char *fpath, int promptend)
break;
#endif
- case 'z':
- ChessReplayGame(fpath);
- break;
}
/* DO NOT DO ANYTHING HERE. NOT SAFE RIGHT NOW. */
}