From 1f7dc4c32af84d525d8cf91decae19dc1ab2da02 Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 5 Apr 2004 20:34:07 +0000 Subject: add FILE_BOTTOM for push_bottom git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1699 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/pttstruct.h | 1 + util/uhash_loader.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/pttstruct.h b/include/pttstruct.h index 5895c31d..c8944e02 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -189,6 +189,7 @@ typedef struct fileheader_t { #define FILE_MARKED 0x2 /* opus: 0x8 */ #define FILE_DIGEST 0x4 /* digest */ #define FILE_HOLD 0x8 /* unused */ +#define FILE_BOTTOM 0x8 /* push_bottom */ #define FILE_SOLVED 0x10 /* problem solved, sysop only */ #define FILE_HIDE 0x20 /* hild */ #define FILE_BM 0x40 /* BM only */ diff --git a/util/uhash_loader.c b/util/uhash_loader.c index 2ea80975..7c2f9beb 100644 --- a/util/uhash_loader.c +++ b/util/uhash_loader.c @@ -121,7 +121,8 @@ void add_to_uhash(int n, userec_t *user) { int *p, h = string_hash(user->userid); strcpy(SHM->userid[n], user->userid); - SHM->money[n] = user->money; + SHM->money[n] = -1; + //user->money; p = &(SHM->hash_head[h]); -- cgit v1.2.3