summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-27 09:45:04 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-27 09:45:04 +0800
commitfb03885b61f94858d8f5927733b91359c8fedfe5 (patch)
tree8948534a729069967845a58f93f7e013f7192b53
parent2124ed3a627d9f19d51c9b6eb0b6543fb2fd96ed (diff)
downloadpttbbs-fb03885b61f94858d8f5927733b91359c8fedfe5.tar
pttbbs-fb03885b61f94858d8f5927733b91359c8fedfe5.tar.gz
pttbbs-fb03885b61f94858d8f5927733b91359c8fedfe5.tar.bz2
pttbbs-fb03885b61f94858d8f5927733b91359c8fedfe5.tar.lz
pttbbs-fb03885b61f94858d8f5927733b91359c8fedfe5.tar.xz
pttbbs-fb03885b61f94858d8f5927733b91359c8fedfe5.tar.zst
pttbbs-fb03885b61f94858d8f5927733b91359c8fedfe5.zip
* solve "topboard is gone, need to press 'S'" by forcing sorted mode in class root
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4780 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 5bf159c6..a1ae8c41 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -861,10 +861,15 @@ cmpboardfriends(const void *brd, const void *tmp)
static void
load_boards(char *key)
{
- int type = cuser.uflag & BRDSORT_FLAG ? 1 : 0;
+ int type = (cuser.uflag & BRDSORT_FLAG) ? 1 : 0;
int i;
int state;
+ // override type in class root, because usually we don't need to sort
+ // class root; and there may be out-of-sync in that mode.
+ if (IN_CLASSROOT)
+ type = 1;
+
brdnum = 0;
if (nbrd) {
free(nbrd);