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.8 by root, Thu Sep 14 22:34:05 2006 UTC vs.
Revision 1.9 by root, Wed Sep 20 21:53:50 2006 UTC

108 ns->exp64 = 0; 108 ns->exp64 = 0;
109 ns->monitor_spells = 0; 109 ns->monitor_spells = 0;
110 ns->mapmode = Map0Cmd; 110 ns->mapmode = Map0Cmd;
111 ns->darkness = 1; 111 ns->darkness = 1;
112 ns->status = Ns_Add; 112 ns->status = Ns_Add;
113 ns->comment = NULL;
114 ns->old_mode = (Old_Mode) 0;
115 ns->mapx = 11; 113 ns->mapx = 11;
116 ns->mapy = 11; 114 ns->mapy = 11;
117 ns->newmapcmd = 0; 115 ns->newmapcmd = 0;
118 ns->itemcmd = 1; /* Default is version item1 command */ 116 ns->itemcmd = 1; /* Default is version item1 command */
119 ns->ext_mapinfos = 0; /*extendedmapinfo datas */ 117 ns->ext_mapinfos = 0; /*extendedmapinfo datas */
334 332
335#ifdef ESRV_DEBUG 333#ifdef ESRV_DEBUG
336 LOG (llevDebug, "Error closing socket %d\n", ns->fd); 334 LOG (llevDebug, "Error closing socket %d\n", ns->fd);
337#endif 335#endif
338 } 336 }
337
339 if (ns->stats.range) 338 if (ns->stats.range)
340 free (ns->stats.range); 339 free (ns->stats.range);
340
341 if (ns->stats.title) 341 if (ns->stats.title)
342 free (ns->stats.title); 342 free (ns->stats.title);
343 if (ns->comment) 343
344 free (ns->comment);
345 free (ns->host); 344 free (ns->host);
346 free (ns->inbuf.buf); 345 free (ns->inbuf.buf);
347} 346}
348 347
349/** Sends the 'goodbye' command to the player, and closes connection. */ 348/** Sends the 'goodbye' command to the player, and closes connection. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines