diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-02-18 13:37:03 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-02-18 13:37:03 +0800 |
commit | cdc303e5890d817862143f63fd3890208ee769d8 (patch) | |
tree | fff0461857036ff9b8fdf0811bec34863e5e2bfc /mbbsd | |
parent | f7daf57b53fa3ed180275765619d33f0e9ab0f71 (diff) | |
download | pttbbs-cdc303e5890d817862143f63fd3890208ee769d8.tar pttbbs-cdc303e5890d817862143f63fd3890208ee769d8.tar.gz pttbbs-cdc303e5890d817862143f63fd3890208ee769d8.tar.bz2 pttbbs-cdc303e5890d817862143f63fd3890208ee769d8.tar.lz pttbbs-cdc303e5890d817862143f63fd3890208ee769d8.tar.xz pttbbs-cdc303e5890d817862143f63fd3890208ee769d8.tar.zst pttbbs-cdc303e5890d817862143f63fd3890208ee769d8.zip |
r3281@kcwu: kcwu | 2006-02-18 13:36:52 +0800
update time variable in signal handler.
Thanks to the notice from rafan.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3273 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 5fbebeef..b67dbbca 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -292,7 +292,11 @@ talk_request(int sig) bell(); if (currutmp->msgcount) { char timebuf[100]; - time4_t now = time(0); +#ifdef OUTTA_TIMER + now = SHM->GV2.e.now; +#else + now = time(0); +#endif move(0, 0); clrtoeol(); @@ -416,6 +420,11 @@ write_request(int sig) return; reentrant_write_request = 1; #endif +#ifdef OUTTA_TIMER + now = SHM->GV2.e.now; +#else + now = time(0); +#endif if (WATERMODE(WATER_OFO)) { /* 如果目前正在回水球模式的話, 就不能進行 add_history() , 因為會改寫 water[], 而使回水球目的爛掉, 所以分成幾種情況考慮. |