summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/chc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c
index 84a80fa3..3cb44c12 100644
--- a/mbbsd/chc.c
+++ b/mbbsd/chc.c
@@ -684,8 +684,11 @@ time_countdown(int who, int length)
return chcd->lefttime[who] < 0;
if (chcd->lefttime[who] < 0) { /* only allowed when in free time */
- chcd->lefttime[who] = 0;
- return chcd->lefthand[who];
+ if (chcd->lefthand[who])
+ return 1;
+ chcd->lefttime[who] = timelimit->limit_time;
+ chcd->lefthand[who] = timelimit->limit_hand;
+ return 0;
}
return 0;