summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/gamble.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index d749bf33..0b17a9c6 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -318,9 +318,12 @@ openticket(int bid)
/* 還沒開完獎不能賭博 只要mv一項就好 */
if (bet != 98) {
- int forBM = money * 0.0005;
- if(forBM > 500) forBM = 500;
+ int forBM;
money = total * price;
+
+ forBM = money * 0.0005;
+ if(forBM > 500) forBM = 500;
+
demoney(forBM);
mail_redenvelop("[賭場抽頭]", cuser.userid, forBM, NULL);
money = ticket[bet] ? money * 0.95 / ticket[bet] : 9999999;