From 8fac6ff42ffe2b20a24166ab076732fdf2fa5d82 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 12 Jun 2002 11:33:46 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@319 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/gamble.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index ce33e40d..fbd06ab0 100644 --- a/mbbsd/gamble.c +++ b/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賭場"); -- cgit v1.2.3