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.53 by root, Mon Jun 11 21:38:13 2007 UTC vs.
Revision 1.56 by root, Sun Jun 24 04:09:29 2007 UTC

208 208
209 } elsif ($k eq "fxix") { 209 } elsif ($k eq "fxix") {
210 $ns->fxix ($v); 210 $ns->fxix ($v);
211 211
212 } elsif ($k eq "msg") { 212 } elsif ($k eq "msg") {
213 $ns->can_msg ($v); 213 $ns->can_msg ($v >= 2);
214 $setup{$k} = $ns->can_msg;
214 215
215 } elsif ($k eq "excmd") { 216 } elsif ($k eq "excmd") {
216 # we support it 217 # we support it
217 218
218 } else { 219 } else {
476 $pl->chargen_race_next; 477 $pl->chargen_race_next;
477 } 478 }
478 479
479 $pl->chargen_race_done; 480 $pl->chargen_race_done;
480 481
482 while () {
483 my $res = query $ns, cf::CS_QUERY_SINGLECHAR,
484 "Now choose a gender.\nPress 'f' to become female, and 'm' to become male.\n";
485
486 if ($res =~ /^[fF]/) {
487 $pl->gender (1);
488 last;
489 } elsif ($res =~ /^[mM]/) {
490 $pl->gender (0);
491 last;
492 }
493 }
494
495 $ob->reply (undef, "Welcome to Crossfire!");
496
481 delete $pl->{deny_save}; 497 delete $pl->{deny_save};
482 498
483 last; 499 last;
484 } 500 }
485 }); 501 });
608 624
609 # remove from sight and get fresh "copies" 625 # remove from sight and get fresh "copies"
610 $pl = delete $cf::PLAYER{$ob->name}; 626 $pl = delete $cf::PLAYER{$ob->name};
611 $ob = $pl->ob; 627 $ob = $pl->ob;
612 628
613 $ob->destroy;
614 $pl->destroy; 629 $pl->destroy; # destroys $ob
615 } else { 630 } else {
616 my $a_ = $pl->refcnt;#d# 631 my $a_ = $pl->refcnt;#d#
617 my $b_ = $ob->refcnt;#d# 632 my $b_ = $ob->refcnt;#d#
618 633
619 warn "player-scheduler refcnt ", $ob->name, " pl $pl_ref ob $ob_ref (C pl $a_ ob $b_)\n";#d# 634 warn "player-scheduler refcnt ", $ob->name, " pl $pl_ref ob $ob_ref (C pl $a_ ob $b_)\n";#d#

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines