1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: init.C,v 1.1 2006/08/13 17:16:05 elmex Exp $"; |
3 | * "$Id: init.C,v 1.3 2006/08/18 02:06:58 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. |
… | |
… | |
153 | ns->outputbuffer.len=0; |
154 | ns->outputbuffer.len=0; |
154 | ns->can_write=1; |
155 | ns->can_write=1; |
155 | ns->password_fails = 0; |
156 | ns->password_fails = 0; |
156 | |
157 | |
157 | ns->current_map = 0; |
158 | ns->current_map = 0; |
|
|
159 | ns->current_x = 0; |
|
|
160 | ns->current_y = 0; |
158 | |
161 | |
159 | ns->sent_scroll=0; |
162 | ns->sent_scroll=0; |
160 | ns->host=strdup_local(from_ip); |
163 | ns->host=strdup_local(from_ip); |
161 | sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO); |
164 | sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO); |
162 | sl.buf=(unsigned char*)buf; |
165 | sl.buf=(unsigned char*)buf; |