src/network/network_server.cpp
changeset 6178 c29a7d37c3ce
parent 5918 f06b73812d5f
child 6235 a4ea32acd914
equal deleted inserted replaced
6177:9da29043c377 6178:c29a7d37c3ce
   619 
   619 
   620 	p->Recv_string(client_revision, sizeof(client_revision));
   620 	p->Recv_string(client_revision, sizeof(client_revision));
   621 
   621 
   622 #if defined(WITH_REV) || defined(WITH_REV_HACK)
   622 #if defined(WITH_REV) || defined(WITH_REV_HACK)
   623 	// Check if the client has revision control enabled
   623 	// Check if the client has revision control enabled
   624 	if (strcmp(NOREV_STRING, client_revision) != 0 &&
   624 	if (!IsNetworkCompatibleVersion(client_revision)) {
   625 			strcmp(_network_game_info.server_revision, client_revision) != 0) {
       
   626 		// Different revisions!!
   625 		// Different revisions!!
   627 		SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_WRONG_REVISION);
   626 		SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_WRONG_REVISION);
   628 		return;
   627 		return;
   629 	}
   628 	}
   630 #endif
   629 #endif