From 045d3591db69564e6bdd20bb3d9afe8923862006 Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 26 May 2003 11:24:28 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@907 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/gamble.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'mbbsd') 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); } -- cgit v1.2.3