summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-08 13:26:45 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-08-08 13:26:45 +0800
commitf540a93c77169cd0be243f9079f1b79bd221a6d4 (patch)
tree532882eb0100feca10518eea7800571c68b37833
parentb5595c9dad3f1f83db978b0bfee9cc408cb172b9 (diff)
downloadpttbbs-f540a93c77169cd0be243f9079f1b79bd221a6d4.tar
pttbbs-f540a93c77169cd0be243f9079f1b79bd221a6d4.tar.gz
pttbbs-f540a93c77169cd0be243f9079f1b79bd221a6d4.tar.bz2
pttbbs-f540a93c77169cd0be243f9079f1b79bd221a6d4.tar.lz
pttbbs-f540a93c77169cd0be243f9079f1b79bd221a6d4.tar.xz
pttbbs-f540a93c77169cd0be243f9079f1b79bd221a6d4.tar.zst
pttbbs-f540a93c77169cd0be243f9079f1b79bd221a6d4.zip
wrong output of the result
thanks scwg.bbs@ptt2.cc git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1087 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/gamble.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index 4d64e416..eb42d085 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -1,4 +1,4 @@
-/* $Id: gamble.c,v 1.35 2003/06/28 08:45:02 kcwu Exp $ */
+/* $Id$ */
#include "bbs.h"
#ifndef _BBS_UTIL_C_
@@ -292,12 +292,12 @@ openticket(int bid)
while (fscanf(fp1, "%s %d %d\n", userid, &mybet, &i) != EOF) {
if (bet == 98 && mybet >= 0 && mybet < count) {
fprintf(fp, "%s 買了 %d 張 %s, 退回 %d 枚P幣\n"
- ,userid, i, betname[mybet], money);
+ ,userid, i, betname[mybet], money * i);
snprintf(buf, sizeof(buf),
"%s 賭場退錢! $ %d", bh->brdname, money * i);
} else if (mybet == bet) {
fprintf(fp, "恭喜 %s 買了%d 張 %s, 獲得 %d 枚P幣\n"
- ,userid, i, betname[mybet], money);
+ ,userid, i, betname[mybet], money * i);
snprintf(buf, sizeof(buf), "%s 中獎咧! $ %d", bh->brdname, money * i);
} else
continue;