From 20626121e1c576bf03a6d22498d3d2cb884c903c Mon Sep 17 00:00:00 2001 From: victor Date: Sun, 24 Oct 2004 14:50:44 +0000 Subject: return money if one didn't catch on the gamble git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2277 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/gamble.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3