diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-26 19:24:28 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-26 19:24:28 +0800 |
commit | 998945b8c37f47b9b68842c2dc32066efca6f8e0 (patch) | |
tree | e5e10df6841a4d370428950f43a0235dcc5e0afd | |
parent | 5d6acc1e8082e6e1af7ccda56c3c70cab04b9c16 (diff) | |
download | pttbbs-998945b8c37f47b9b68842c2dc32066efca6f8e0.tar pttbbs-998945b8c37f47b9b68842c2dc32066efca6f8e0.tar.gz pttbbs-998945b8c37f47b9b68842c2dc32066efca6f8e0.tar.bz2 pttbbs-998945b8c37f47b9b68842c2dc32066efca6f8e0.tar.lz pttbbs-998945b8c37f47b9b68842c2dc32066efca6f8e0.tar.xz pttbbs-998945b8c37f47b9b68842c2dc32066efca6f8e0.tar.zst pttbbs-998945b8c37f47b9b68842c2dc32066efca6f8e0.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@907 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/gamble.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pttbbs/mbbsd/gamble.c b/pttbbs/mbbsd/gamble.c index b6b0d61c..93342e00 100644 --- a/pttbbs/mbbsd/gamble.c +++ b/pttbbs/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); } |