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