mirror of https://github.com/FWGS/xash3d-fwgs
engine: client: cl_parse: minor code fix in CL_ParseLegacyServerData
This commit is contained in:
parent
ee8098839e
commit
44a43c2c09
|
@ -2456,8 +2456,8 @@ void CL_ParseLegacyServerData( sizebuf_t *msg )
|
||||||
i = MSG_ReadLong( msg );
|
i = MSG_ReadLong( msg );
|
||||||
//cls.serverProtocol = i;
|
//cls.serverProtocol = i;
|
||||||
|
|
||||||
if( i != 48 )
|
if( i != PROTOCOL_LEGACY_VERSION )
|
||||||
Host_Error( "Server uses invalid protocol (%i should be %i)\n", i, PROTOCOL_VERSION );
|
Host_Error( "Server uses invalid protocol (%i should be %i)\n", i, PROTOCOL_LEGACY_VERSION );
|
||||||
|
|
||||||
cl.servercount = MSG_ReadLong( msg );
|
cl.servercount = MSG_ReadLong( msg );
|
||||||
cl.checksum = MSG_ReadLong( msg );
|
cl.checksum = MSG_ReadLong( msg );
|
||||||
|
|
Loading…
Reference in New Issue