diff options
author | (no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-08 04:58:56 +0800 |
---|---|---|
committer | (no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-08 04:58:56 +0800 |
commit | 35c15c1641f614ce3dbb9280e554030410afb250 (patch) | |
tree | 2c19ff68403970144b3cf3ddea1ac78c8003890e /mbbsd | |
parent | 3eced116f16e16fdf08c65c189ac7b2c1cd83232 (diff) | |
download | pttbbs-35c15c1641f614ce3dbb9280e554030410afb250.tar pttbbs-35c15c1641f614ce3dbb9280e554030410afb250.tar.gz pttbbs-35c15c1641f614ce3dbb9280e554030410afb250.tar.bz2 pttbbs-35c15c1641f614ce3dbb9280e554030410afb250.tar.lz pttbbs-35c15c1641f614ce3dbb9280e554030410afb250.tar.xz pttbbs-35c15c1641f614ce3dbb9280e554030410afb250.tar.zst pttbbs-35c15c1641f614ce3dbb9280e554030410afb250.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1222 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 756b8055..c55a7570 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1410,7 +1410,8 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t /*if(!payby && bidinfo.usermax!=-1) {�HPtt���۰ʦ��� }*/ - prints("���� %s �H %d �o��!", bidinfo.userid, bidinfo.high); + prints("���� %s �H %d �o��!", bidinfo.userid, + bidinfo.high); } else prints("�L�H�o��!"); pressanykey(); @@ -1420,7 +1421,7 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t { prints("�U���X���ܤ֭n:%d", bidinfo.high + bidinfo.increment); if(bidinfo.buyitnow) - prints(" (�W�L %d �����ʶR)",bidinfo.buyitnow); + prints(" (��J %d ����H�����ʶR����)",bidinfo.buyitnow); next=bidinfo.high + bidinfo.increment; } else @@ -1444,7 +1445,9 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t getdata(23, 0, "�z���̰��U�Ъ��B(0:����):", genbuf, 7, LCECHO); i=atoi(genbuf); - + + if(bidinfo.buyitnow && i>bidinfo.buyitnow) i = bidinfo.buyitnow; + get_record(fpath, &bidinfo, sizeof(bidinfo), 1); if(!bidinfo.userid[0]) next=bidinfo.high; @@ -1453,7 +1456,7 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t if(i< next || (bidinfo.payby==0 && cuser.money<i )); { - outmsg("�����U�ЩμЪ�����"); + outmsg("�����U�ЩμЪ������m��"); pressanykey(); } @@ -1465,15 +1468,16 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp, char *direct, struct t next, fromhost, ptime->tm_mon + 1, ptime->tm_mday); do_add_recommend(direct, fhdr, ent, genbuf); - if(next>bidinfo.usermax) + if(next > bidinfo.usermax) { bidinfo.usermax=i; bidinfo.high=next; strcpy(bidinfo.userid,cuser.userid); } - else if(next<bidinfo.usermax && i>bidinfo.usermax) + else if(i>bidinfo.usermax) { bidinfo.high=bidinfo.usermax+bidinfo.increment; + if(bidinfo.high>i) bidinfo.high=i; bidinfo.usermax=i; strcpy(bidinfo.userid,cuser.userid); @@ -1490,7 +1494,8 @@ 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=bidinfo.usermax; /*�o��ǩǪ�*/ + bidinfo.high=i; /*�o��ǩǪ�*/ + if(bidinfo.high>bidinfo.buyitnow) bidinfo.high=bidinfo.buyitnow; snprintf(genbuf, sizeof(genbuf), "\033[1;31m�� \033[33m�۰��v��%s�ӥX\033[m\033[33m\033[m%*s���B:%-15d�� %02d/%02d\n", bidinfo.userid, |