diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-22 11:25:49 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-22 11:25:49 +0800 |
commit | e345432a104c536c910947dbfb1e7ba9deb8c665 (patch) | |
tree | 397d1c5f96baaf67cc1c0da819e621e34f24fdef /mbbsd | |
parent | 9f0be6bfcc67a19c74339d3260953465aeba139e (diff) | |
download | pttbbs-e345432a104c536c910947dbfb1e7ba9deb8c665.tar pttbbs-e345432a104c536c910947dbfb1e7ba9deb8c665.tar.gz pttbbs-e345432a104c536c910947dbfb1e7ba9deb8c665.tar.bz2 pttbbs-e345432a104c536c910947dbfb1e7ba9deb8c665.tar.lz pttbbs-e345432a104c536c910947dbfb1e7ba9deb8c665.tar.xz pttbbs-e345432a104c536c910947dbfb1e7ba9deb8c665.tar.zst pttbbs-e345432a104c536c910947dbfb1e7ba9deb8c665.zip |
clear() -> clrtobot(), fix wrong page calculationvictor.symblic@1555
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1555 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/vote.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c index c465f063..22a22f58 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -908,7 +908,7 @@ user_vote_one(char *bname, int ind) chosen = (char *)malloc(item_num); memset(chosen, 0, item_num); memset(choices, 0, sizeof(choices)); - max_page = item_num / 30 + 1; + max_page = (item_num - 1)/ 30 + 1; prints("щ布よΑ絋﹚眤匡拒块ㄤ絏(A, B, C...)\n" "Ωщ布щ %1hd 布 0 щ布, 1 ЧΘщ布, > , < \n" @@ -923,7 +923,8 @@ user_vote_one(char *bname, int ind) if (redo) { int i, j; - clear(); + move(5, 0); + clrtobot(); /* 稱ぃよ猭 ぃ稱俱弄秈 memory * τ场だщ布ぃ穦禬筁 ┮眖郎 scan */ |