summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-17 22:20:51 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-17 22:20:51 +0800
commit2403fd0fac7ace087d49155994c29d5a62bf9e8b (patch)
tree57ac4b838e86713849a38f87a9109e3f91c4dfc1
parent1425e383959d2673f68fe242fd93ca964ce4fce6 (diff)
downloadpttbbs-2403fd0fac7ace087d49155994c29d5a62bf9e8b.tar
pttbbs-2403fd0fac7ace087d49155994c29d5a62bf9e8b.tar.gz
pttbbs-2403fd0fac7ace087d49155994c29d5a62bf9e8b.tar.bz2
pttbbs-2403fd0fac7ace087d49155994c29d5a62bf9e8b.tar.lz
pttbbs-2403fd0fac7ace087d49155994c29d5a62bf9e8b.tar.xz
pttbbs-2403fd0fac7ace087d49155994c29d5a62bf9e8b.tar.zst
pttbbs-2403fd0fac7ace087d49155994c29d5a62bf9e8b.zip
proper layout for long screen
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2407 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index a99c1e1c..5e4e827f 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1157,16 +1157,18 @@ do_limitedit(int ent, fileheader_t * fhdr, char *direct)
bp = getbcache(currbid);
strcpy(buf, "э ");
- if (HAS_PERM(PERM_SYSOP)) strcat(buf, "(A)セ狾祇 ");
+ if (HAS_PERM(PERM_SYSOP))
+ strcat(buf, "(A)セ狾祇 ");
strcat(buf, "(B)セ狾箇砞");
- if (fhdr->filemode & FILE_VOTE) strcat(buf, " (C)セ絞");
+ if (fhdr->filemode & FILE_VOTE)
+ strcat(buf, " (C)セ絞");
strcat(buf, "硈竝 (Q)[Q]");
- getdata(23, 0, buf, genbuf, 3, LCECHO);
+ genbuf[0] = getans(buf);
if (HAS_PERM(PERM_SYSOP) && genbuf[0] == 'a') {
sprintf(genbuf, "%u", bp->post_limit_logins * 10);
do {
- getdata_buf(23, 0, "Ω计 (0~2550)", genbuf, 5, LCECHO);
+ getdata_buf(b_lines - 1, 0, "Ω计 (0~2550)", genbuf, 5, LCECHO);
temp = atoi(genbuf);
} while (temp < 0 || temp > 2550);
bp->post_limit_logins = (unsigned char)(temp / 10);
@@ -1185,14 +1187,14 @@ do_limitedit(int ent, fileheader_t * fhdr, char *direct)
else if (genbuf[0] == 'b') {
sprintf(genbuf, "%u", bp->vote_limit_logins * 10);
do {
- getdata_buf(23, 0, "Ω计 (0~2550)", genbuf, 5, LCECHO);
+ getdata_buf(b_lines - 1, 0, "Ω计 (0~2550)", genbuf, 5, LCECHO);
temp = atoi(genbuf);
} while (temp < 0 || temp > 2550);
bp->vote_limit_logins = (unsigned char)(temp / 10);
sprintf(genbuf, "%u", bp->vote_limit_posts * 10);
do {
- getdata_buf(23, 0, "ゅ彻絞计 (0~2550)", genbuf, 5, LCECHO);
+ getdata_buf(b_lines - 1, 0, "ゅ彻絞计 (0~2550)", genbuf, 5, LCECHO);
temp = atoi(genbuf);
} while (temp < 0 || temp > 2550);
bp->vote_limit_posts = (unsigned char)(temp / 10);
@@ -1204,7 +1206,7 @@ do_limitedit(int ent, fileheader_t * fhdr, char *direct)
else if ((fhdr->filemode & FILE_VOTE) && genbuf[0] == 'c') {
sprintf(genbuf, "%u", (unsigned int)(fhdr->multi.vote_limits.logins) * 10);
do {
- getdata_buf(23, 0, "Ω计 (0~2550)", genbuf, 5, LCECHO);
+ getdata_buf(b_lines - 1, 0, "Ω计 (0~2550)", genbuf, 5, LCECHO);
temp = atoi(genbuf);
} while (temp < 0 || temp > 2550);
temp /= 10;
@@ -1212,7 +1214,7 @@ do_limitedit(int ent, fileheader_t * fhdr, char *direct)
sprintf(genbuf, "%u", (unsigned int)(fhdr->multi.vote_limits.posts) * 10);
do {
- getdata_buf(23, 0, "ゅ彻絞计 (0~2550)", genbuf, 5, LCECHO);
+ getdata_buf(b_lines - 1, 0, "ゅ彻絞计 (0~2550)", genbuf, 5, LCECHO);
temp = atoi(genbuf);
} while (temp < 0 || temp > 2550);
temp /= 10;