summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-05 02:54:41 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-05 02:54:41 +0800
commit9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5 (patch)
tree9fdd6b206577e969e030795616ea4caed231c444
parentf614ba0f02f1f81eafbda3c99c1b2f0899b5dc41 (diff)
downloadpttbbs-9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5.tar
pttbbs-9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5.tar.gz
pttbbs-9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5.tar.bz2
pttbbs-9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5.tar.lz
pttbbs-9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5.tar.xz
pttbbs-9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5.tar.zst
pttbbs-9e8eccb1ed95c357fc4291d06d8fb29ea92a37c5.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@286 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 36adbd72..4f54254d 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.62 2002/06/04 18:31:59 ptt Exp $ */
+/* $Id: talk.c,v 1.63 2002/06/04 18:54:41 ptt Exp $ */
#include "bbs.h"
#define QCAST int (*)(const void *, const void *)
@@ -1467,9 +1467,9 @@ int pickup_maxpages(int pickupway, int nfriend, int bfriend)
if( cuser.uflag & FRIEND_FLAG )
number = nfriend + bfriend;
else
- number = utmpshm->number +
- (pickupway == 0 ? nfriend + bfriend : 0);
- return number / MAXPICKUP + (number % MAXPICKUP == 0 ? 0 : 1);
+ number = utmpshm->number;
+ // (pickupway == 0 ? nfriend + bfriend : 0);
+ return (number-1) / MAXPICKUP;
}
static int pickup_myfriend(pickup_t *friends,