diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-03-04 23:40:51 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-03-04 23:40:51 +0800 |
commit | 66a0e0e786412114be7e2439b816b2780601e016 (patch) | |
tree | 66d6d49ca479f9b526be49cbbc71efb301a3c157 | |
parent | c87ab09ceb917bb9c0ce6bc89a40249f786b108f (diff) | |
download | pttbbs-66a0e0e786412114be7e2439b816b2780601e016.tar pttbbs-66a0e0e786412114be7e2439b816b2780601e016.tar.gz pttbbs-66a0e0e786412114be7e2439b816b2780601e016.tar.bz2 pttbbs-66a0e0e786412114be7e2439b816b2780601e016.tar.lz pttbbs-66a0e0e786412114be7e2439b816b2780601e016.tar.xz pttbbs-66a0e0e786412114be7e2439b816b2780601e016.tar.zst pttbbs-66a0e0e786412114be7e2439b816b2780601e016.zip |
correct new gamble BM money function
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4447 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/gamble.c | 7 |
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; |