… | |
… | |
608 | |
608 | |
609 | # remove from sight and get fresh "copies" |
609 | # remove from sight and get fresh "copies" |
610 | $pl = delete $cf::PLAYER{$ob->name}; |
610 | $pl = delete $cf::PLAYER{$ob->name}; |
611 | $ob = $pl->ob; |
611 | $ob = $pl->ob; |
612 | |
612 | |
613 | $ob->destroy; |
|
|
614 | $pl->destroy; |
613 | $pl->destroy; # destroys $ob |
615 | } else { |
614 | } else { |
616 | my $a_ = $pl->refcnt;#d# |
615 | my $a_ = $pl->refcnt;#d# |
617 | my $b_ = $ob->refcnt;#d# |
616 | my $b_ = $ob->refcnt;#d# |
618 | |
617 | |
619 | warn "player-scheduler refcnt ", $ob->name, " pl $pl_ref ob $ob_ref (C pl $a_ ob $b_)\n";#d# |
618 | warn "player-scheduler refcnt ", $ob->name, " pl $pl_ref ob $ob_ref (C pl $a_ ob $b_)\n";#d# |