diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-24 01:23:48 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-24 01:23:48 +0800 |
commit | db0578da3212c0aeac388ac5f4a504462e1c82ac (patch) | |
tree | b26af69cdbbb8cb37b9b43478ee84b08638d5cb4 /mbbsd | |
parent | 826e928876e6f5e5b27335a2907a09847bbfad23 (diff) | |
download | pttbbs-db0578da3212c0aeac388ac5f4a504462e1c82ac.tar pttbbs-db0578da3212c0aeac388ac5f4a504462e1c82ac.tar.gz pttbbs-db0578da3212c0aeac388ac5f4a504462e1c82ac.tar.bz2 pttbbs-db0578da3212c0aeac388ac5f4a504462e1c82ac.tar.lz pttbbs-db0578da3212c0aeac388ac5f4a504462e1c82ac.tar.xz pttbbs-db0578da3212c0aeac388ac5f4a504462e1c82ac.tar.zst pttbbs-db0578da3212c0aeac388ac5f4a504462e1c82ac.zip |
- asses: gpfix: align MAXGP to real value.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3944 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/assess.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c index 231ca71b..e3c68bf1 100644 --- a/mbbsd/assess.c +++ b/mbbsd/assess.c @@ -60,12 +60,14 @@ void set_assess(const char *userid, unsigned char num, int type) #define AIDC_LEN (20) #endif // AIDC_LEN -#define MAXGP (100) +// #define MAXGP (100) +#define MAXGP (SALE_MAXVALUE) int u_fixgoodpost(void) { - char endinput = 0, newgp = 0; + char endinput = 0; + unsigned int newgp = 0; int bid; char bname[IDLEN+1]; char xaidc[AIDC_LEN+1]; @@ -244,12 +246,12 @@ u_fixgoodpost(void) } vmsgf("%s 看板輸入完成。", bname); } + if (newgp > MAXGP) + newgp = MAXGP; if (newgp <= cuser.goodpost) { - vmsg("確認優文數目低於已有優文數,不調整。"); + vmsg("確認優文數目未高於已有優文數,不調整。"); } else { - if (newgp > MAXGP) - newgp = MAXGP; log_filef("log/fixgoodpost.log", LOG_CREAT, "%s %s 自動修正優文數: 由 %d 變為 %d\n", Cdate(&now), cuser.userid, cuser.goodpost, newgp); |