shithub: qk1

Download patch

ref: 0e6e395d46aa6da4ba5c1413739f8c9d621fdf48
parent: f6275a20cf9dda098a6cfdcab986b6e7cb04fc03
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Oct 14 12:13:09 EDT 2023

CL_ParseStartSoundPacket: sv.protocol → cl.protocol

--- a/cl_parse.c
+++ b/cl_parse.c
@@ -97,7 +97,7 @@
     field_mask = MSG_ReadByte(); 
     volume = (field_mask & SND_VOLUME) ? MSG_ReadByte() : Spktvol;
 	attenuation = (field_mask & SND_ATTENUATION) ? MSG_ReadByte()/64.0 : Spktatt;
-	if(field_mask & (sv.protocol->fl_large_entity | sv.protocol->fl_large_channel)){
+	if(field_mask & (cl.protocol->fl_large_entity | cl.protocol->fl_large_channel)){
 		ent = MSG_ReadShort();
 		channel = MSG_ReadByte();
 	}else{
@@ -105,7 +105,7 @@
 		ent = channel >> 3;
 		channel &= 7;
 	}
-	sound_num = (field_mask & sv.protocol->fl_large_sound) ? MSG_ReadShort() : MSG_ReadByte();
+	sound_num = (field_mask & cl.protocol->fl_large_sound) ? MSG_ReadShort() : MSG_ReadByte();
 
 	if(ent > MAX_EDICTS)
 		Host_Error("CL_ParseStartSoundPacket: ent = %d", ent);