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.36 by root, Wed Apr 4 02:20:27 2007 UTC vs.
Revision 1.39 by root, Mon Apr 16 06:23:41 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
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 {
354 . "(check for Numlock and other semi-obvious error sources).", 357 . "(check for Numlock and other semi-obvious error sources).",
355 cf::NDI_RED 358 cf::NDI_RED
356 ); 359 );
357 next; 360 next;
358 } 361 }
362 } else {
363 # unable to load the playerfile:
364 # check wether the player dir exists, which means the file is corrupted or
365 # something very similar.
366 if (!aio_stat cf::player::playerdir $user) {
367 $ns->send_drawinfo (
368 "Unable to retrieve this player. It might be a locked or broken account. "
369 . "If this is your account, ask a dungeon master for assistance. "
370 . "Otherwise choose a different login name.",
371 cf::NDI_RED
372 );
373 next;
374 }
359 } 375 }
360 376
361 # the rest of this function is character creation 377 # the rest of this function is character creation
362 378
363 # just to make sure nothing is left over 379 # just to make sure nothing is left over
523 or next; 539 or next;
524 $pl->valid or next; 540 $pl->valid or next;
525 541
526 eval { 542 eval {
527 if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { 543 if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) {
528 $cf::WAIT_FOR_TICK_ONE->wait; 544 cf::wait_for_tick_begin;
529 $pl->save; 545 $pl->save;
530 546
531 unless ($pl->active) { 547 unless ($pl->active) {
532 # 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
533 my $ob = $pl->ob; 549 my $ob = $pl->ob;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines