summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-26 19:24:28 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-26 19:24:28 +0800
commit045d3591db69564e6bdd20bb3d9afe8923862006 (patch)
tree947f78d6a17deff50d711ef8e03432487f37eb84 /mbbsd
parentf8bd80f0c04f27cb005cdecca5f8bb33b3bad237 (diff)
downloadpttbbs-045d3591db69564e6bdd20bb3d9afe8923862006.tar
pttbbs-045d3591db69564e6bdd20bb3d9afe8923862006.tar.gz
pttbbs-045d3591db69564e6bdd20bb3d9afe8923862006.tar.bz2
pttbbs-045d3591db69564e6bdd20bb3d9afe8923862006.tar.lz
pttbbs-045d3591db69564e6bdd20bb3d9afe8923862006.tar.xz
pttbbs-045d3591db69564e6bdd20bb3d9afe8923862006.tar.zst
pttbbs-045d3591db69564e6bdd20bb3d9afe8923862006.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@907 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/gamble.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index b6b0d61c..93342e00 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -1,4 +1,4 @@
-/* $Id: gamble.c,v 1.33 2003/04/27 13:00:16 in2 Exp $ */
+/* $Id: gamble.c,v 1.34 2003/05/26 11:24:28 ptt Exp $ */
#include "bbs.h"
#ifndef _BBS_UTIL_C_
@@ -150,12 +150,6 @@ ticket(int bid)
很有可能跑到下次賭盤的紀錄去, 也很有可能被板主新開賭盤時洗掉
不過這邊至少可以做到的是, 頂多只會有一筆資料是錯的
--*/
- if (bid && !dashf(fn_ticket)) {
- move(b_lines - 1, 0);
- prints("哇!! 耐ㄚ捏...板主已經停止下注了 不能賭嚕");
- pressanykey();
- break;
- }
if (ch == 'q' || ch == 'Q')
break;
ch -= '1';
@@ -163,6 +157,14 @@ ticket(int bid)
continue;
n = 0;
ch_buyitem(price, "etc/buyticket", &n, 0);
+
+ if (bid && !dashf(fn_ticket)) {
+ move(b_lines - 1, 0);
+ prints("哇!! 耐ㄚ捏...板主已經停止下注了 不能賭嚕");
+ pressanykey();
+ break;
+ }
+
if (n > 0)
append_ticket_record(path, ch, n, count);
}