From d9ecd03b4a2dda26f8155f4c7487528f9f131834 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 21 Jun 2026 10:12:56 +0500 Subject: [PATCH] client: parse: fix default attenuation value for goldsrc sound packet --- engine/client/parse/cl_parse_gs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/parse/cl_parse_gs.c b/engine/client/parse/cl_parse_gs.c index df89deb0..7103b84a 100644 --- a/engine/client/parse/cl_parse_gs.c +++ b/engine/client/parse/cl_parse_gs.c @@ -465,7 +465,7 @@ static void CL_ParseSoundPacketGS( sizebuf_t *msg ) float attn; if( FBitSet( flags, SND_ATTENUATION )) attn = (float)MSG_ReadByte( msg ) / 64.0f; - else attn = ATTN_NONE; + else attn = 1.0f; int chan = MSG_ReadUBitLong( msg, 3 ); int entnum = MSG_ReadUBitLong( msg, MAX_GOLDSRC_ENTITY_BITS );