576 char client_revision[NETWORK_REVISION_LENGTH]; |
576 char client_revision[NETWORK_REVISION_LENGTH]; |
577 |
577 |
578 |
578 |
579 NetworkRecv_string(p, client_revision, sizeof(client_revision)); |
579 NetworkRecv_string(p, client_revision, sizeof(client_revision)); |
580 |
580 |
|
581 #ifdef WITH_REV |
581 // Check if the client has revision control enabled |
582 // Check if the client has revision control enabled |
582 if (strncmp(NOREV_STRING, client_revision, sizeof(client_revision)) != 0) { |
583 if (strncmp(NOREV_STRING, client_revision, sizeof(client_revision)) != 0) { |
583 if (strncmp(_network_game_info.server_revision, client_revision, sizeof(_network_game_info.server_revision) - 1) != 0) { |
584 if (strncmp(_network_game_info.server_revision, client_revision, sizeof(_network_game_info.server_revision) - 1) != 0) { |
584 // Different revisions!! |
585 // Different revisions!! |
585 SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_WRONG_REVISION); |
586 SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_WRONG_REVISION); |
586 |
587 |
587 return; |
588 return; |
588 } |
589 } |
589 } |
590 } |
|
591 #endif |
590 |
592 |
591 NetworkRecv_string(p, name, sizeof(name)); |
593 NetworkRecv_string(p, name, sizeof(name)); |
592 playas = NetworkRecv_uint8(p); |
594 playas = NetworkRecv_uint8(p); |
593 client_lang = NetworkRecv_uint8(p); |
595 client_lang = NetworkRecv_uint8(p); |
594 NetworkRecv_string(p, unique_id, sizeof(unique_id)); |
596 NetworkRecv_string(p, unique_id, sizeof(unique_id)); |