--- deliantra/server/ext/map-scheduler.ext 2007/01/01 16:50:09 1.5 +++ deliantra/server/ext/map-scheduler.ext 2007/01/01 17:50:26 1.6 @@ -15,7 +15,6 @@ for my $map (values %cf::MAP) { eval { - next if $map->players; # not yet, because maps might become visible to players nearby # we need to remove the map from %cf::MAP and all tiled map links # if ($last_access + $DEACTIVATE_TIMEOUT <= $cf::RUNTIME) { @@ -25,7 +24,7 @@ if ($map->should_reset) { $map->reset; } elsif ($map->in_memory == cf::MAP_IN_MEMORY) { - if ($map->last_access + $SWAP_TIMEOUT <= $cf::RUNTIME) { + if ($map->last_access + $SWAP_TIMEOUT <= $cf::RUNTIME && !$map->players) { $map->swap_out; Coro::Timer::sleep $SAVE_INTERVAL; } elsif ($map->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) {