From 44a43c2c09434101a16aa33de12eef94acc92540 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Wed, 26 Oct 2022 20:19:49 +0400 Subject: [PATCH] engine: client: cl_parse: minor code fix in CL_ParseLegacyServerData --- engine/client/cl_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 21c70337..b45f575a 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -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 );