diff options
Diffstat (limited to 'mbbsd/chicken.c')
-rw-r--r-- | mbbsd/chicken.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mbbsd/chicken.c b/mbbsd/chicken.c index 32288158..5631fd19 100644 --- a/mbbsd/chicken.c +++ b/mbbsd/chicken.c @@ -888,8 +888,14 @@ recover_chicken(chicken_t * thechicken) "你有一個剛走不久的%s要招換回來嗎? 只要 %d 元唷 " ANSI_RESET, chicken_type[(int)thechicken->type], price); outmsg(buf); - bell(); - getdata(21, 0, " 選擇 (N:坑人嘛/y:請幫幫我): ", buf, 3, LCECHO); + + // prevent user accident hit + do { + bell(); + getdata(21, 0, " 選擇 (N:坑人嘛/y:請幫幫我): ", buf, 3, LCECHO); + } + while (buf[0] != 'y' && buf[0] != 'n'); + if (buf[0] == 'y') { reload_money(); if (cuser.money < price) { |