diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-27 13:53:09 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-27 13:53:09 +0800 |
commit | 94e087690d91b8d409709093b96b8a0037df9ac0 (patch) | |
tree | 97f6ab8f334324875017e45e9fe2ef61f54d2ffd | |
parent | 295472e4dc9ba12da3ae2c638f3192caacd7ae71 (diff) | |
download | pttbbs-94e087690d91b8d409709093b96b8a0037df9ac0.tar pttbbs-94e087690d91b8d409709093b96b8a0037df9ac0.tar.gz pttbbs-94e087690d91b8d409709093b96b8a0037df9ac0.tar.bz2 pttbbs-94e087690d91b8d409709093b96b8a0037df9ac0.tar.lz pttbbs-94e087690d91b8d409709093b96b8a0037df9ac0.tar.xz pttbbs-94e087690d91b8d409709093b96b8a0037df9ac0.tar.zst pttbbs-94e087690d91b8d409709093b96b8a0037df9ac0.zip |
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@731 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/board.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index b61854fa..36421670 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.104 2003/03/27 05:44:42 in2 Exp $ */ +/* $Id: board.c,v 1.105 2003/03/27 05:53:09 in2 Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -706,7 +706,7 @@ static void load_boards(char *key) { boardheader_t *bptr = NULL; - int type = cuser.uflag & BRDSORT_FLAG ? 1 : 0; + int type = (cuser.uflag & BRDSORT_FLAG) ? 0 : 1; int i, n; int state; #ifdef CRITICAL_MEMORY @@ -1167,12 +1167,16 @@ choose_board(int newflag) getdata(b_lines - 1, 0, "排序方式 (1)按照板名排序 (2)按照類別排序 ==> [0]取消 ", input, sizeof(input), DOECHO); - if( input[0] == '1' ) + if( input[0] == '1' ){ + cuser.uflag |= BRDSORT_FLAG; qsort(&fav->b, fav->nDatas, sizeof(fav_board_t), favcmpboardname); - else if( input[0] == '2' ) + } + else if( input[0] == '2' ){ + cuser.uflag &= ~BRDSORT_FLAG; qsort(&fav->b, fav->nDatas, sizeof(fav_board_t), favcmpboardclass); + } } brdnum = -1; break; |