1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: init.c,v 1.1.1.1 2006/02/03 07:14:44 root Exp $"; |
3 | * "$Id: init.c,v 1.4 2006/06/11 15:02:17 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; |
|
|
127 | ns->mapinfocmd = 0; |
|
|
128 | ns->extcmd = 0; |
126 | |
129 | |
127 | /* we should really do some checking here - if total clients overflows |
130 | /* 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 |
131 | * we need to do something more intelligent, because client id's will start |
129 | * duplicating (not likely in normal cases, but malicous attacks that |
132 | * duplicating (not likely in normal cases, but malicous attacks that |
130 | * just open and close connections could get this total up. |
133 | * just open and close connections could get this total up. |
… | |
… | |
149 | ns->outputbuffer.start=0; |
152 | ns->outputbuffer.start=0; |
150 | ns->outputbuffer.len=0; |
153 | ns->outputbuffer.len=0; |
151 | ns->can_write=1; |
154 | ns->can_write=1; |
152 | ns->password_fails = 0; |
155 | ns->password_fails = 0; |
153 | |
156 | |
|
|
157 | ns->current_map = 0; |
|
|
158 | |
154 | ns->sent_scroll=0; |
159 | ns->sent_scroll=0; |
155 | ns->host=strdup_local(from_ip); |
160 | ns->host=strdup_local(from_ip); |
156 | sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO); |
161 | sprintf((char*)buf, "version %d %d %s\n", VERSION_CS,VERSION_SC, VERSION_INFO); |
157 | sl.buf=buf; |
162 | sl.buf=buf; |
158 | sl.len=strlen((char*)buf); |
163 | sl.len=strlen((char*)buf); |