… | |
… | |
15 | |
15 | |
16 | sub query { |
16 | sub query { |
17 | my ($ns, $flags, $text) = @_; |
17 | my ($ns, $flags, $text) = @_; |
18 | |
18 | |
19 | my $current = $Coro::current; |
19 | my $current = $Coro::current; |
20 | $ns->query ($flags, $text, sub { $current->ready; $current = $_[0]; }); |
20 | $ns->query ($flags, $text, sub { $current->ready; $current = $_[0] }); |
21 | Coro::schedule while ref $current; |
21 | Coro::schedule while ref $current; |
22 | |
22 | |
23 | $current |
23 | $current |
24 | } |
24 | } |
25 | |
25 | |
… | |
… | |
168 | } elsif ($k eq "extendedMapInfos") { |
168 | } elsif ($k eq "extendedMapInfos") { |
169 | $ns->ext_mapinfos ($v); |
169 | $ns->ext_mapinfos ($v); |
170 | |
170 | |
171 | } elsif ($k eq "extendedTextInfos") { |
171 | } elsif ($k eq "extendedTextInfos") { |
172 | $ns->has_readable_type ($v); |
172 | $ns->has_readable_type ($v); |
|
|
173 | |
|
|
174 | } elsif ($k eq "smoothing") { # cfplus-style smoothing |
|
|
175 | $ns->smoothing ($v); |
173 | |
176 | |
174 | } elsif ($k eq "fxix") { |
177 | } elsif ($k eq "fxix") { |
175 | $ns->fxix ($v); |
178 | $ns->fxix ($v); |
176 | |
179 | |
177 | } else { |
180 | } else { |
… | |
… | |
536 | or next; |
539 | or next; |
537 | $pl->valid or next; |
540 | $pl->valid or next; |
538 | |
541 | |
539 | eval { |
542 | eval { |
540 | if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { |
543 | if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { |
541 | $cf::WAIT_FOR_TICK_ONE->wait; |
544 | cf::wait_for_tick_begin; |
542 | $pl->save; |
545 | $pl->save; |
543 | |
546 | |
544 | unless ($pl->active) { |
547 | unless ($pl->active) { |
545 | # check refcounts, this is tricky and needs to be adjusted to fit server internals |
548 | # check refcounts, this is tricky and needs to be adjusted to fit server internals |
546 | my $ob = $pl->ob; |
549 | my $ob = $pl->ob; |