diff options
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r-- | mbbsd/gamble.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index 69193f9f..0a4ba166 100644 --- a/mbbsd/gamble.c +++ b/mbbsd/gamble.c @@ -176,7 +176,9 @@ ticket(int bid) ch_buyitem(price, "etc/buyticket", &n, 0); if (bid && !dashf(fn_ticket)) { - // XXX 錢沒有退回 + int money = price * n; + if (money > 0) + deumoney(currutmp->uid, money); vmsg("哇!! 耐ㄚ捏...板主已經停止下注了 不能賭嚕"); break; } |