ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/login.ext
(Generate patch)

Comparing deliantra/server/ext/login.ext (file contents):
Revision 1.37 by root, Fri Apr 6 22:57:53 2007 UTC vs.
Revision 1.40 by root, Mon Apr 16 15:50:49 2007 UTC

15 15
16sub query { 16sub 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
137 137
138 } elsif ($k eq "extmap") { 138 } elsif ($k eq "extmap") {
139 $ns->extmap ($v); 139 $ns->extmap ($v);
140 140
141 } elsif ($k eq "facecache") { 141 } elsif ($k eq "facecache") {
142 if (!$v) {
143 $v = 1;
144 $setup{$k} = $v;
145 $ns->send_drawinfo ("(trying to force facecaching to be enabled)", cf::NDI_RED);
146 }
147
142 $ns->facecache ($v); 148 $ns->facecache ($v);
143 149
144 } elsif ($k eq "faceset") { 150 } elsif ($k eq "faceset") {
145 $ns->faceset (0); 151 $ns->faceset (0);
146 $setup{$k} = 0; 152 $setup{$k} = 0;
168 } elsif ($k eq "extendedMapInfos") { 174 } elsif ($k eq "extendedMapInfos") {
169 $ns->ext_mapinfos ($v); 175 $ns->ext_mapinfos ($v);
170 176
171 } elsif ($k eq "extendedTextInfos") { 177 } elsif ($k eq "extendedTextInfos") {
172 $ns->has_readable_type ($v); 178 $ns->has_readable_type ($v);
179
180 } elsif ($k eq "smoothing") { # cfplus-style smoothing
181 $ns->smoothing ($v);
173 182
174 } elsif ($k eq "fxix") { 183 } elsif ($k eq "fxix") {
175 $ns->fxix ($v); 184 $ns->fxix ($v);
176 185
177 } else { 186 } else {
536 or next; 545 or next;
537 $pl->valid or next; 546 $pl->valid or next;
538 547
539 eval { 548 eval {
540 if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { 549 if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) {
541 $cf::WAIT_FOR_TICK_ONE->wait; 550 cf::wait_for_tick_begin;
542 $pl->save; 551 $pl->save;
543 552
544 unless ($pl->active) { 553 unless ($pl->active) {
545 # check refcounts, this is tricky and needs to be adjusted to fit server internals 554 # check refcounts, this is tricky and needs to be adjusted to fit server internals
546 my $ob = $pl->ob; 555 my $ob = $pl->ob;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines