summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author(no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-08 05:44:24 +0800
committer(no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-08 05:44:24 +0800
commit772e6c0d848720ecd7db4aee086e1f5e9a6a4b36 (patch)
treefad73c9b422a522331bb2a77843895312206ae52
parentb2ccf17712071e2205bb9c58664877bd99e019ca (diff)
downloadpttbbs-772e6c0d848720ecd7db4aee086e1f5e9a6a4b36.tar
pttbbs-772e6c0d848720ecd7db4aee086e1f5e9a6a4b36.tar.gz
pttbbs-772e6c0d848720ecd7db4aee086e1f5e9a6a4b36.tar.bz2
pttbbs-772e6c0d848720ecd7db4aee086e1f5e9a6a4b36.tar.lz
pttbbs-772e6c0d848720ecd7db4aee086e1f5e9a6a4b36.tar.xz
pttbbs-772e6c0d848720ecd7db4aee086e1f5e9a6a4b36.tar.zst
pttbbs-772e6c0d848720ecd7db4aee086e1f5e9a6a4b36.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1225 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 1a1bf8c4..cbaa69b5 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1446,13 +1446,16 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t
i=atoi(genbuf);
- if(bidinfo.buyitnow && i>bidinfo.buyitnow) i = bidinfo.buyitnow;
get_record(fpath, &bidinfo, sizeof(bidinfo), 1);
- if(!bidinfo.userid[0])
+
+ if(bidinfo.buyitnow && i>bidinfo.buyitnow)
+ i=bidonfo.buyitnow;
+ esle if(!bidinfo.userid[0])
next=bidinfo.high;
else
next=bidinfo.high + bidinfo.increment;
+
if(i< next || (bidinfo.payby==0 && cuser.money<i ));
{
@@ -1494,9 +1497,7 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t
if(i+bidinfo.increment<bidinfo.usermax)
bidinfo.high=i+bidinfo.increment;
else
- bidinfo.high=i; /*這邊怪怪的*/
- if(bidinfo.buyitnow && bidinfo.high>bidinfo.buyitnow)
- bidinfo.high=bidinfo.buyitnow;
+ bidinfo.high=bidinfo.usermax; /*這邊怪怪的*/
snprintf(genbuf, sizeof(genbuf),
"\033[1;31m→ \033[33m自動競標%s勝出\033[m\033[33m\033[m%*s金額:%-15d標 %02d/%02d\n",
bidinfo.userid,