… | |
… | |
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}; |