diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-12 19:33:46 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-12 19:33:46 +0800 |
commit | 441cef73089db2cad6b92f71cedf02ecbd4dff08 (patch) | |
tree | b5795ddb775aa5a3296eb8622e34e998749b1efa | |
parent | 81a7137d1186690d381470c507425d9eb814d92e (diff) | |
download | pttbbs-441cef73089db2cad6b92f71cedf02ecbd4dff08.tar pttbbs-441cef73089db2cad6b92f71cedf02ecbd4dff08.tar.gz pttbbs-441cef73089db2cad6b92f71cedf02ecbd4dff08.tar.bz2 pttbbs-441cef73089db2cad6b92f71cedf02ecbd4dff08.tar.lz pttbbs-441cef73089db2cad6b92f71cedf02ecbd4dff08.tar.xz pttbbs-441cef73089db2cad6b92f71cedf02ecbd4dff08.tar.zst pttbbs-441cef73089db2cad6b92f71cedf02ecbd4dff08.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@319 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/gamble.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/gamble.c b/pttbbs/mbbsd/gamble.c index ce33e40d..fbd06ab0 100644 --- a/pttbbs/mbbsd/gamble.c +++ b/pttbbs/mbbsd/gamble.c @@ -1,4 +1,4 @@ -/* $Id: gamble.c,v 1.14 2002/06/07 19:12:11 ptt Exp $ */ +/* $Id: gamble.c,v 1.15 2002/06/12 11:33:46 ptt Exp $ */ #include "bbs.h" #ifndef _BBS_UTIL_C_ @@ -309,11 +309,11 @@ int openticket(int bid) { Cdatelite(&now), betname[bet], total*price, ticket[bet], total, (float) ticket[bet] / total, money); - fprintf(fp, "%s 賭盤開出:%s 所有金額:%d 元 獎金/張:%d 元 機率:%1.2f\n\n", + fprintf(fp, "%s 賭盤開出:%s 所有金額:%d 元 獎金/張:%d 元 機率:%1.2f\n\n", Cdatelite(&now), betname[bet], total*price, money, total? (float)ticket[bet] / total:0); } - else + else fprintf(fp, "\n\n賭盤取消退錢: %s \n\n", Cdatelite(&now)); } @@ -344,6 +344,8 @@ int openticket(int bid) { ,userid, i, betname[mybet], money); sprintf(buf, "%s 中獎咧! $ %d", bh->brdname, money * i); } + else + continue; if((uid=getuser(userid))==0) continue; deumoney(uid, money * i); mail_id(userid, buf, "etc/ticket.win", "Ptt賭場"); |