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.28 by root, Tue Jan 23 03:45:44 2007 UTC vs.
Revision 1.29 by root, Tue Jan 23 03:56:44 2007 UTC

379 my $pl_ref = $pl->refcnt_cnt; 379 my $pl_ref = $pl->refcnt_cnt;
380 my $ob_ref = $ob->refcnt_cnt; 380 my $ob_ref = $ob->refcnt_cnt;
381 381
382 ## pl_ref == one from object + one from cf::PLAYER 382 ## pl_ref == one from object + one from cf::PLAYER
383 ## ob_ref == one from simply being an object 383 ## ob_ref == one from simply being an object
384 #TODO: the above should be correct, understand the 1/0, respectively
385 if ($pl_ref == 1 && $ob_ref == 0) { 384 if ($pl_ref == 2 && $ob_ref == 1) {
386 warn "player-scheduler destroy ", $ob->name;#d# 385 warn "player-scheduler destroy ", $ob->name;#d#
387 386
388 # remove from sight and get fresh "copies" 387 # remove from sight and get fresh "copies"
389 $pl = delete $cf::PLAYER{$ob->name}; 388 $pl = delete $cf::PLAYER{$ob->name};
390 $ob = $pl->ob; 389 $ob = $pl->ob;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines