From 78611c8b4983d348876b2fd922935b118e39ac9a Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 27 Mar 2003 05:10:21 +0000 Subject: fix favline git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@729 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mbbsd/board.c b/mbbsd/board.c index f7ab6b57..ec2fd372 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.102 2003/03/26 17:51:53 victor Exp $ */ +/* $Id: board.c,v 1.103 2003/03/27 05:10:21 victor Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -515,7 +515,8 @@ save_brdbuf(void) #endif for( r = w = 0 ; r < fav->nDatas ; ++r ) - if( fav->b[r].attr & BRD_FAV && bcache[fav->b[r].bid - 1].brdname[0]) + if( ( fav->b[r].attr & BRD_LINE ) || + (fav->b[r].attr & BRD_FAV && bcache[fav->b[r].bid - 1].brdname[0])) fav->b[w++] = fav->b[r]; fav->nDatas = w; setuserfile(fname, ".fav3"); @@ -1235,10 +1236,9 @@ choose_board(int newflag) break; } setfav(0, BRD_FAV | BRD_LINE, 1, 0); - nbrd[brdnum].bid = fav->nLines; - nbrd[brdnum].myattr = (BRD_FAV | BRD_LINE); movefav(brdnum++, num); favchange = 1; + brdnum = -1; head = 9999; } break; @@ -1253,9 +1253,9 @@ choose_board(int newflag) } else{ setfav(nbrd[num].bid, BRD_FAV, 2, 0); - nbrd[num].myattr ^= BRD_FAV; } favchange = 1; + brdnum = -1; head = 9999; } break; -- cgit v1.2.3