From e345432a104c536c910947dbfb1e7ba9deb8c665 Mon Sep 17 00:00:00 2001 From: victor Date: Sun, 22 Feb 2004 03:25:49 +0000 Subject: clear() -> clrtobot(), fix wrong page calculation git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1555 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/vote.c | 5 +++-- 1 file 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 */ -- cgit v1.2.3