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

Comparing deliantra/server/socket/init.C (file contents):
Revision 1.29 by root, Fri Dec 22 06:02:29 2006 UTC vs.
Revision 1.30 by root, Fri Dec 22 16:34:00 2006 UTC

157} 157}
158 158
159client::~client () 159client::~client ()
160{ 160{
161 if (pl) 161 if (pl)
162 {
163 pl->save ();
164 leave (pl, 1);
162 pl->ns = 0; 165 pl->ns = 0;
166
167 delete pl;
168 }
163 169
164 if (fd >= 0) 170 if (fd >= 0)
165 close (fd); 171 close (fd);
166 172
167 sfree<uint8> (faces_sent, nrofpixmaps); 173 sfree<uint8> (faces_sent, nrofpixmaps);
204void 210void
205free_all_newserver (void) 211free_all_newserver (void)
206{ 212{
207 LOG (llevDebug, "Freeing all new client/server information.\n"); 213 LOG (llevDebug, "Freeing all new client/server information.\n");
208 free_socket_images (); 214 free_socket_images ();
209}
210
211/** Sends the 'goodbye' command to the player, and closes connection. */
212void
213final_free_player (player *pl)
214{
215 free_player (pl);
216} 215}
217 216
218client * 217client *
219client::create (int fd, const char *peername) 218client::create (int fd, const char *peername)
220{ 219{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines