From 034b5e55dddfb355aaaeb52d98af31709990a9a4 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> Date: Tue, 7 Oct 2003 21:44:24 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1225 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mbbsd') 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.moneybidinfo.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, -- cgit v1.2.3