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.2 by root, Thu Aug 17 20:23:32 2006 UTC vs.
Revision 1.4 by root, Mon Aug 21 07:13:32 2006 UTC

1/* 1/*
2 * static char *rcsid_init_c = 2 * static char *rcsid_init_c =
3 * "$Id: init.C,v 1.2 2006/08/17 20:23:32 root Exp $"; 3 * "$Id: init.C,v 1.4 2006/08/21 07:13:32 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
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 ns->monitor_spells = 0;
127 ns->mapinfocmd = 0; 127 ns->mapinfocmd = 0;
128 ns->extcmd = 0; 128 ns->extcmd = 0;
129 ns->extmap = 0;
129 130
130 /* we should really do some checking here - if total clients overflows 131 /* we should really do some checking here - if total clients overflows
131 * we need to do something more intelligent, because client id's will start 132 * we need to do something more intelligent, because client id's will start
132 * duplicating (not likely in normal cases, but malicous attacks that 133 * duplicating (not likely in normal cases, but malicous attacks that
133 * just open and close connections could get this total up. 134 * just open and close connections could get this total up.
155 ns->password_fails = 0; 156 ns->password_fails = 0;
156 157
157 ns->current_map = 0; 158 ns->current_map = 0;
158 ns->current_x = 0; 159 ns->current_x = 0;
159 ns->current_y = 0; 160 ns->current_y = 0;
161 ns->client[0] = 0;
162 ns->buggy_mapscroll = 0;
160 163
161 ns->sent_scroll=0; 164 ns->sent_scroll=0;
162 ns->host=strdup_local(from_ip); 165 ns->host=strdup_local(from_ip);
163 sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO); 166 sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO);
164 sl.buf=(unsigned char*)buf; 167 sl.buf=(unsigned char*)buf;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines