summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-24 22:50:44 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-24 22:50:44 +0800
commit20626121e1c576bf03a6d22498d3d2cb884c903c (patch)
treecf7ec979a8cac880694fa38a5f8c28b656928376
parent02022e323d5366d33166dfda21915f787c8621b1 (diff)
downloadpttbbs-20626121e1c576bf03a6d22498d3d2cb884c903c.tar
pttbbs-20626121e1c576bf03a6d22498d3d2cb884c903c.tar.gz
pttbbs-20626121e1c576bf03a6d22498d3d2cb884c903c.tar.bz2
pttbbs-20626121e1c576bf03a6d22498d3d2cb884c903c.tar.lz
pttbbs-20626121e1c576bf03a6d22498d3d2cb884c903c.tar.xz
pttbbs-20626121e1c576bf03a6d22498d3d2cb884c903c.tar.zst
pttbbs-20626121e1c576bf03a6d22498d3d2cb884c903c.zip
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
-rw-r--r--mbbsd/gamble.c4
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;
}