From 69aa60480b75e8f5accbc2b9717af81aadd0416f Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 12 Jun 2005 09:09:28 +0000 Subject: animated board notes git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2833 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index d4a4194b..6cf51226 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2222,14 +2222,19 @@ static int b_notes(void) { char buf[PATHLEN]; + int mr = 0; setbfile(buf, currboard, fn_notes); - if (more(buf, NA) == -1) { + mr = more(buf, NA); + + if (mr == -1) + { clear(); move(4, 20); outs("¥»¬ÝªO©|µL¡u³Æ§Ñ¿ý¡v¡C"); } - pressanykey(); + if(mr != READ_NEXT) + pressanykey(); return FULLUPDATE; } @@ -2714,11 +2719,14 @@ Read(void) set_board(); if (board_visit_time < *board_note_time) { + int mr = 0; + setbfile(buf, currboard, fn_notes); - if(more(buf, NA)!=-1) - pressanykey(); - else + mr = more(buf, NA); + if(mr == -1) *board_note_time=0; + else if (mr != READ_NEXT) + pressanykey(); } setutmpbid(currbid); setbdir(buf, currboard); -- cgit v1.2.3