From fb03885b61f94858d8f5927733b91359c8fedfe5 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 27 Aug 2009 01:45:04 +0000 Subject: * 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 --- mbbsd/board.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3