engine: client: cl_parse: minor code fix in CL_ParseLegacyServerData

This commit is contained in:
SNMetamorph 2022-10-26 20:19:49 +04:00 committed by Alibek Omarov
parent ee8098839e
commit 44a43c2c09
1 changed files with 2 additions and 2 deletions

View File

@ -2456,8 +2456,8 @@ void CL_ParseLegacyServerData( sizebuf_t *msg )
i = MSG_ReadLong( msg );
//cls.serverProtocol = i;
if( i != 48 )
Host_Error( "Server uses invalid protocol (%i should be %i)\n", i, PROTOCOL_VERSION );
if( i != PROTOCOL_LEGACY_VERSION )
Host_Error( "Server uses invalid protocol (%i should be %i)\n", i, PROTOCOL_LEGACY_VERSION );
cl.servercount = MSG_ReadLong( msg );
cl.checksum = MSG_ReadLong( msg );