--- deliantra/server/ext/login.ext 2007/04/06 22:57:53 1.37 +++ deliantra/server/ext/login.ext 2007/04/18 17:32:06 1.42 @@ -6,8 +6,6 @@ use Coro::AIO; use List::Util qw(min max); -my $PLAYERDIR = sprintf "%s/%s", cf::localdir, cf::playerdir; - # paranoia function to overwrite a string-in-place sub nuke_str { substr $_[0], 0, (length $_[0]), "x" x length $_[0] @@ -17,7 +15,7 @@ my ($ns, $flags, $text) = @_; my $current = $Coro::current; - $ns->query ($flags, $text, sub { $current->ready; $current = $_[0]; }); + $ns->query ($flags, $text, sub { $current->ready; $current = $_[0] }); Coro::schedule while ref $current; $current @@ -139,6 +137,12 @@ $ns->extmap ($v); } elsif ($k eq "facecache") { + if (!$v) { + $v = 1; + $setup{$k} = $v; + $ns->send_drawinfo ("(trying to forcefully enable facecaching)", cf::NDI_RED); + } + $ns->facecache ($v); } elsif ($k eq "faceset") { @@ -171,6 +175,9 @@ } elsif ($k eq "extendedTextInfos") { $ns->has_readable_type ($v); + } elsif ($k eq "smoothing") { # cfplus-style smoothing + $ns->smoothing ($v); + } elsif ($k eq "fxix") { $ns->fxix ($v); @@ -538,7 +545,7 @@ eval { if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { - $cf::WAIT_FOR_TICK_ONE->wait; + cf::wait_for_tick_begin; $pl->save; unless ($pl->active) {