equal
deleted
inserted
replaced
222 |
222 |
223 cs->status = STATUS_AUTHORIZING; |
223 cs->status = STATUS_AUTHORIZING; |
224 |
224 |
225 Packet *p = NetworkSend_Init(PACKET_SERVER_NEED_PASSWORD); |
225 Packet *p = NetworkSend_Init(PACKET_SERVER_NEED_PASSWORD); |
226 p->Send_uint8(type); |
226 p->Send_uint8(type); |
|
227 p->Send_uint32(_patches.generation_seed); |
|
228 p->Send_string(_network_unique_id); |
227 cs->Send_Packet(p); |
229 cs->Send_Packet(p); |
228 } |
230 } |
229 |
231 |
230 DEF_SERVER_SEND_COMMAND(PACKET_SERVER_WELCOME) |
232 DEF_SERVER_SEND_COMMAND(PACKET_SERVER_WELCOME) |
231 { |
233 { |
245 cs->status = STATUS_AUTH; |
247 cs->status = STATUS_AUTH; |
246 _network_game_info.clients_on++; |
248 _network_game_info.clients_on++; |
247 |
249 |
248 p = NetworkSend_Init(PACKET_SERVER_WELCOME); |
250 p = NetworkSend_Init(PACKET_SERVER_WELCOME); |
249 p->Send_uint16(cs->index); |
251 p->Send_uint16(cs->index); |
|
252 p->Send_uint32(_patches.generation_seed); |
|
253 p->Send_string(_network_unique_id); |
250 cs->Send_Packet(p); |
254 cs->Send_Packet(p); |
251 |
255 |
252 // Transmit info about all the active clients |
256 // Transmit info about all the active clients |
253 FOR_ALL_CLIENTS(new_cs) { |
257 FOR_ALL_CLIENTS(new_cs) { |
254 if (new_cs != cs && new_cs->status > STATUS_AUTH) |
258 if (new_cs != cs && new_cs->status > STATUS_AUTH) |