--- deliantra/server/ext/login.ext 2007/04/10 09:35:23 1.38 +++ 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] @@ -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") { @@ -541,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) {