… | |
… | |
17 | while () { |
17 | while () { |
18 | Coro::Timer::sleep $SCHEDULE_INTERVAL; |
18 | Coro::Timer::sleep $SCHEDULE_INTERVAL; |
19 | |
19 | |
20 | for my $map (values %cf::MAP) { |
20 | for my $map (values %cf::MAP) { |
21 | eval { |
21 | eval { |
22 | next if $map->in_memory != cf::MAP_IN_MEMORY; |
|
|
23 | next if $map->players; |
22 | next if $map->players; |
24 | my $last_access = $map->last_access; |
23 | my $last_access = $map->last_access; |
25 | # not yet, because maps might become visible to players nearby |
24 | # not yet, because maps might become visible to players nearby |
26 | # we need a tiled meta map for this to work |
25 | # we need a tiled meta map for this to work |
27 | # if ($last_access + $DEACTIVATE_TIMEOUT <= $cf::RUNTIME) { |
26 | # if ($last_access + $DEACTIVATE_TIMEOUT <= $cf::RUNTIME) { |