diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/cal.c | 6 | ||||
-rw-r--r-- | mbbsd/edit.c | 3 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 4cacb91a..4082de51 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -394,11 +394,11 @@ int do_give_money(char *id, int uid, int money) // penalty if (money < 50) { - usleep(2000000); + usleep(2000000); // 2 sec } else if (money < 200) { - usleep(500000); + usleep(500000); // 0.5 sec } else { - usleep(100000); + usleep(100000); // 0.1 sec } return 0; } diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 7c554e03..e5e5a7b6 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1703,7 +1703,8 @@ write_file(const char *fpath, int saveheader, int *islocal, char *mytitle, int u getdata(2, 0, "確定要儲存檔案嗎? ", ans, 2, LCECHO); // avoid lots pots - sleep(1); + if (ans[0] != 'a') + sleep(1); switch (ans[0]) { case 'a': diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index c599c524..887ca77e 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -609,7 +609,7 @@ multi_user_check(void) getdata(b_lines - 1, 0, "您想刪除其他重複登入的連線嗎?[Y/n] ", genbuf, 3, LCECHO); - usleep(random()%1000000); + usleep(random()%1000000); // 0~1s if (genbuf[0] != 'n') { do { // scan again, old ui may be invalid |