--- deliantra/server/socket/init.C 2006/12/22 06:02:29 1.29 +++ deliantra/server/socket/init.C 2006/12/22 16:34:00 1.30 @@ -159,7 +159,13 @@ client::~client () { if (pl) - pl->ns = 0; + { + pl->save (); + leave (pl, 1); + pl->ns = 0; + + delete pl; + } if (fd >= 0) close (fd); @@ -208,13 +214,6 @@ free_socket_images (); } -/** Sends the 'goodbye' command to the player, and closes connection. */ -void -final_free_player (player *pl) -{ - free_player (pl); -} - client * client::create (int fd, const char *peername) {