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.27 by root, Mon Jan 22 03:44:41 2007 UTC vs.
Revision 1.28 by root, Tue Jan 23 03:45: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
384 if ($pl_ref == 2 && $ob_ref == 1) { 385 if ($pl_ref == 1 && $ob_ref == 0) {
385 warn "player-scheduler destroy ", $ob->name;#d# 386 warn "player-scheduler destroy ", $ob->name;#d#
386 387
387 # remove from sight and get fresh "copies" 388 # remove from sight and get fresh "copies"
388 $pl = delete $cf::PLAYER{$ob->name}; 389 $pl = delete $cf::PLAYER{$ob->name};
389 $ob = $pl->ob; 390 $ob = $pl->ob;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines