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.1 by root, Fri Feb 3 07:14:44 2006 UTC vs.
Revision 1.2 by root, Mon Apr 17 07:31:54 2006 UTC

1/* 1/*
2 * static char *rcsid_init_c = 2 * static char *rcsid_init_c =
3 * "$Id: init.c,v 1.1 2006/02/03 07:14:44 root Exp $"; 3 * "$Id: init.c,v 1.2 2006/04/17 07:31:54 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
121 ns->EMI_smooth=0; 121 ns->EMI_smooth=0;
122 ns->look_position = 0; 122 ns->look_position = 0;
123 ns->update_look = 0; 123 ns->update_look = 0;
124 ns->has_readable_type = 0; 124 ns->has_readable_type = 0;
125 ns->supported_readables = 0; 125 ns->supported_readables = 0;
126 ns->monitor_spells = 0;
126 127
127 /* we should really do some checking here - if total clients overflows 128 /* we should really do some checking here - if total clients overflows
128 * we need to do something more intelligent, because client id's will start 129 * we need to do something more intelligent, because client id's will start
129 * duplicating (not likely in normal cases, but malicous attacks that 130 * duplicating (not likely in normal cases, but malicous attacks that
130 * just open and close connections could get this total up. 131 * just open and close connections could get this total up.
149 ns->outputbuffer.start=0; 150 ns->outputbuffer.start=0;
150 ns->outputbuffer.len=0; 151 ns->outputbuffer.len=0;
151 ns->can_write=1; 152 ns->can_write=1;
152 ns->password_fails = 0; 153 ns->password_fails = 0;
153 154
155 ns->current_map = 0;
156
154 ns->sent_scroll=0; 157 ns->sent_scroll=0;
155 ns->host=strdup_local(from_ip); 158 ns->host=strdup_local(from_ip);
156 sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO); 159 sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO);
157 sl.buf=buf; 160 sl.buf=buf;
158 sl.len=strlen((char*)buf); 161 sl.len=strlen((char*)buf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines