summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/shmctl.c3
-rw-r--r--util/uhash_loader.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 077566ab..0686786a 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -419,6 +419,9 @@ inline void utmpsort(int sortall)
if( nusers[i] > 8 &&
(top < HOTBOARDCACHE || nusers[i] > last) &&
IS_BOARD(&SHM->bcache[i]) &&
+#ifdef USE_COOLDOWN
+ !(SHM->bcache[i].brdattr & BRD_COOLDOWN) &&
+#endif
IS_OPENBRD(&SHM->bcache[i]) ){
for( k = top - 1 ; k >= 0 ; --k )
if(HBcache[k]>=0 &&
diff --git a/util/uhash_loader.c b/util/uhash_loader.c
index 6a0bfaf4..0c7da6db 100644
--- a/util/uhash_loader.c
+++ b/util/uhash_loader.c
@@ -150,6 +150,9 @@ void userec_add_to_uhash(int n, userec_t *user, int onfly)
{
strcpy(SHM->userid[n], user->userid);
SHM->money[n] = user->money;
+#ifdef USE_COOLDOWN
+ SHM->cooldowntime[n] = 0;
+#endif
if(onfly)
printf("add %s\n", user->userid);
}