… | |
… | |
149 | */ |
149 | */ |
150 | faces_sent[0] = true; |
150 | faces_sent[0] = true; |
151 | fx_want [FT_FACE] = true; // all clients must support image faces |
151 | fx_want [FT_FACE] = true; // all clients must support image faces |
152 | |
152 | |
153 | socket_ev.set (fd, EV_READ); |
153 | socket_ev.set (fd, EV_READ); |
|
|
154 | socket_ev.prio (2); // one higher than the ticker priority |
154 | socket_ev.start (); |
155 | socket_ev.start (); |
155 | |
156 | |
156 | // initialisation done, kick it! |
157 | // initialisation done, kick it! |
157 | send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); |
158 | send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); |
158 | flush (); |
159 | flush (); |
… | |
… | |
210 | last_resist[i] = -1; |
211 | last_resist[i] = -1; |
211 | |
212 | |
212 | last_weapon_sp = -1; |
213 | last_weapon_sp = -1; |
213 | last_level = -1; |
214 | last_level = -1; |
214 | last_stats.exp = -1; |
215 | last_stats.exp = -1; |
215 | last_weight = (uint32) - 1; |
216 | //last_weight = -1; |
216 | last_flags = 0; |
217 | last_flags = 0; |
217 | last_weight = 0; |
|
|
218 | last_weight_limit = 0; |
218 | last_weight_limit = 0; |
219 | last_path_attuned = 0; |
219 | last_path_attuned = 0; |
220 | last_path_repelled = 0; |
220 | last_path_repelled = 0; |
221 | last_path_denied = 0; |
221 | last_path_denied = 0; |
222 | last_speed = 0; |
222 | last_speed = 0; |