summaryrefslogtreecommitdiffstats
path: root/mbbsd/gamble.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-03-04 17:12:43 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-03-04 17:12:43 +0800
commit46b6bd4585678af7ff9069055f6523102d1ef197 (patch)
tree40b3a597a7d23ddcf52ac6fb2e8a6db0813ceead /mbbsd/gamble.c
parent9c634694d8b980f3a3c50d54dc174ca913204145 (diff)
downloadpttbbs-46b6bd4585678af7ff9069055f6523102d1ef197.tar
pttbbs-46b6bd4585678af7ff9069055f6523102d1ef197.tar.gz
pttbbs-46b6bd4585678af7ff9069055f6523102d1ef197.tar.bz2
pttbbs-46b6bd4585678af7ff9069055f6523102d1ef197.tar.lz
pttbbs-46b6bd4585678af7ff9069055f6523102d1ef197.tar.xz
pttbbs-46b6bd4585678af7ff9069055f6523102d1ef197.tar.zst
pttbbs-46b6bd4585678af7ff9069055f6523102d1ef197.zip
Fix gamble for BM
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4445 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r--mbbsd/gamble.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index d3af831f..739a77f0 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -318,10 +318,11 @@ openticket(int bid)
/* 還沒開完獎不能賭博 只要mv一項就好 */
if (bet != 98) {
+ int forBM = money * 0.0005;
+ if(forBM > 500) forBM = 500;
money = total * price;
- demoney(money * 0.02);
- mail_redenvelop("[賭場抽頭]", cuser.userid,
- money < 1000000 ? money * 0.001 : 1000, NULL);
+ demoney(forBM);
+ mail_redenvelop("[賭場抽頭]", cuser.userid, forBM, NULL);
money = ticket[bet] ? money * 0.95 / ticket[bet] : 9999999;
} else {
vice(price * 10, "賭盤退錢手續費");