--- deliantra/server/ext/player-scheduler.ext 2010/04/07 18:35:56 1.5 +++ deliantra/server/ext/player-scheduler.ext 2010/04/29 07:52:02 1.6 @@ -36,7 +36,7 @@ ## ob_ref == (P)$ob + (C)pl->observe + (C)pl->viewpoint + (C)simply being an object ## !$pl->ns ensures that ob == viewpoint == observe if ($pl_ref == 3 && $ob_ref == 4) { - warn "player-scheduler destroy ", $ob->name;#d# + cf::trace "player-scheduler destroy ", $ob->name;#d# # remove from sight and get fresh "copies" $pl = delete $cf::PLAYER{$ob->name}; @@ -47,12 +47,13 @@ my $a_ = $pl->refcnt;#d# my $b_ = $ob->refcnt;#d# - warn "player-scheduler refcnt ", $ob->name, " pl $pl_ref/3 ob $ob_ref/3 (C pl $a_/1 ob $b_/2)\n";#d# + cf::debug "player-scheduler refcnt ", $ob->name, " pl $pl_ref/3 ob $ob_ref/3 (C pl $a_/1 ob $b_/2)\n";#d# } } } }; - warn $@ if $@; + cf::error $@ if $@; + cf::cede_to_tick; }; }