diff options
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 |
commit | 034b5e55dddfb355aaaeb52d98af31709990a9a4 (patch) | |
tree | c7abbab7523c38c2ea0afa940eb2a76267f4eae9 | |
parent | 520985b7e9e07bdbd2bbefa3bbb9fbf4da60c0f1 (diff) | |
download | pttbbs-034b5e55dddfb355aaaeb52d98af31709990a9a4.tar pttbbs-034b5e55dddfb355aaaeb52d98af31709990a9a4.tar.gz pttbbs-034b5e55dddfb355aaaeb52d98af31709990a9a4.tar.bz2 pttbbs-034b5e55dddfb355aaaeb52d98af31709990a9a4.tar.lz pttbbs-034b5e55dddfb355aaaeb52d98af31709990a9a4.tar.xz pttbbs-034b5e55dddfb355aaaeb52d98af31709990a9a4.tar.zst pttbbs-034b5e55dddfb355aaaeb52d98af31709990a9a4.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1225 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 1a1bf8c4..cbaa69b5 100644 --- a/mbbsd/bbs.c +++ b/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, |