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.50 by root, Sun Jun 10 03:14:04 2007 UTC vs.
Revision 1.52 by root, Sun Jun 10 03:16:54 2007 UTC

597 my $ob = $pl->ob; 597 my $ob = $pl->ob;
598 598
599 my $pl_ref = $pl->refcnt_cnt; 599 my $pl_ref = $pl->refcnt_cnt;
600 my $ob_ref = $ob->refcnt_cnt; 600 my $ob_ref = $ob->refcnt_cnt;
601 601
602 ## pl_ref == object + cf::PLAYER + $pl 602 ## pl_ref == $pl + ob->contr + %cf::PLAYER
603 ## ob_ref == being an object + pl->observe + $ob 603 ## ob_ref == $ob + pl->observe + simply being an object
604 if ($pl_ref == 3 && $ob_ref == 3) { 604 if ($pl_ref == 3 && $ob_ref == 3) {
605 warn "player-scheduler destroy ", $ob->name;#d# 605 warn "player-scheduler destroy ", $ob->name;#d#
606 606
607 # remove from sight and get fresh "copies" 607 # remove from sight and get fresh "copies"
608 $pl = delete $cf::PLAYER{$ob->name}; 608 $pl = delete $cf::PLAYER{$ob->name};
612 $pl->destroy; 612 $pl->destroy;
613 } else { 613 } else {
614 my $a_ = $pl->refcnt;#d# 614 my $a_ = $pl->refcnt;#d#
615 my $b_ = $ob->refcnt;#d# 615 my $b_ = $ob->refcnt;#d#
616 616
617 warn "player-scheduler refcnt ", $ob->name, " pp$pl_ref,pc$a_ op$ob_ref,oc$b_\n";#d# 617 warn "player-scheduler refcnt ", $ob->name, " pl $pl_ref ob $ob_ref (C pl $a_ ob $b_)\n";#d#
618 } 618 }
619 } 619 }
620 } 620 }
621 }; 621 };
622 warn $@ if $@; 622 warn $@ if $@;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines