client: parse: fix default attenuation value for goldsrc sound packet

This commit is contained in:
Alibek Omarov
2026-06-21 10:12:56 +05:00
parent 2de4d0d364
commit d9ecd03b4a

View File

@@ -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 );