X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_parse.c;h=30b2d3cc7e0408281e5dfb8cd16aabc10cf8de02;hb=7fd05e792c54a2be48c322eb6718c52d209605c5;hp=4f1a07e2ac4bfa606a778918c7daab0e9fff68c0;hpb=e703adf309505c85d0814e3a34a4c7c525eb540a;p=xonotic%2Fdarkplaces.git diff --git a/cl_parse.c b/cl_parse.c index 4f1a07e2..30b2d3cc 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -2300,7 +2300,7 @@ static void CL_ParseStaticSound (int large) int sound_num, vol, atten; MSG_ReadVector(&cl_message, org, cls.protocol); - if (large || cls.protocol == PROTOCOL_NEHAHRABJP2) + if (large) sound_num = (unsigned short) MSG_ReadShort(&cl_message); else sound_num = MSG_ReadByte(&cl_message); @@ -3976,7 +3976,7 @@ void CL_ParseServerMessage(void) break; case svc_sound: - CL_ParseStartSoundPacket(false); + CL_ParseStartSoundPacket(cls.protocol == PROTOCOL_NEHAHRABJP2 || cls.protocol == PROTOCOL_NEHAHRABJP3 ? true : false); break; case svc_precache: @@ -4125,7 +4125,7 @@ void CL_ParseServerMessage(void) break; case svc_spawnstaticsound: - CL_ParseStaticSound (false); + CL_ParseStaticSound (cls.protocol == PROTOCOL_NEHAHRABJP2 || cls.protocol == PROTOCOL_NEHAHRABJP3 ? true : false); break; case svc_spawnstaticsound2: