ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/player.C
(Generate patch)

Comparing deliantra/server/common/player.C (file contents):
Revision 1.10 by root, Sat Dec 16 03:08:25 2006 UTC vs.
Revision 1.11 by root, Thu Dec 21 23:37:05 2006 UTC

49 { 49 {
50 pl->ob->contr = 0; 50 pl->ob->contr = 0;
51 pl->ob->destroy (); 51 pl->ob->destroy ();
52 } 52 }
53 53
54 if (pl->socket) 54 if (pl->ns)
55 { 55 {
56 pl->socket->pl = 0;
57 pl->socket->send_packet ("goodbye"); 56 pl->ns->send_packet ("goodbye");
57 pl->ns->flush ();
58 pl->ns->pl = 0;
58 pl->socket->destroy (); 59 pl->ns->destroy ();
59 } 60 }
60 61
61 /* Clear item stack */ 62 /* Clear item stack */
62 if (pl->stack_items) 63 if (pl->stack_items)
63 free (pl->stack_items); 64 free (pl->stack_items);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines