From 8c93a0d24789de2ca8c7b2d67678e2802e95458f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 26 Oct 2024 05:12:11 +0300 Subject: [PATCH] engine: client: allow playing back demos recorded on GoldSrc servers --- engine/client/cl_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/cl_demo.c b/engine/client/cl_demo.c index c8a7eee2..38e12446 100644 --- a/engine/client/cl_demo.c +++ b/engine/client/cl_demo.c @@ -1470,7 +1470,7 @@ static qboolean CL_ParseDemoHeader( const char *callee, const char *filename, fi return false; } - if( hdr->net_protocol != PROTOCOL_VERSION && hdr->net_protocol != PROTOCOL_LEGACY_VERSION ) + if( hdr->net_protocol != PROTOCOL_VERSION && hdr->net_protocol != PROTOCOL_LEGACY_VERSION && hdr->net_protocol != PROTOCOL_GOLDSRC_VERSION_DEMO ) { Con_Printf( S_ERROR "%s: net protocol outdated (%i should be %i or %i)\n", callee, hdr->net_protocol, PROTOCOL_VERSION, PROTOCOL_LEGACY_VERSION );