X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=cl_parse.c;h=5d3b55e0cd51ce4ce2f457790c2a5b49915adf86;hb=5f87543f8de03947ea11dea301fd883c176b4eac;hp=d3f52ac21ae8dcc4e122376e7f944e977272fb63;hpb=cd600a24266f3b063fb8775f717ffd3601a3c385;p=xonotic%2Fdarkplaces.git diff --git a/cl_parse.c b/cl_parse.c index d3f52ac2..5d3b55e0 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -152,7 +152,7 @@ void CL_ParseStartSoundPacket(int largesoundindex) MSG_ReadVector(pos, cl.protocol); - S_StartSound (ent, channel, cl.sound_precache[sound_num], pos, volume/255.0, attenuation); + S_StartSound (ent, channel, cl.sound_precache[sound_num], pos, volume/255.0f, attenuation); } /* @@ -407,13 +407,7 @@ void CL_ParseServerInfo (void) Mod_PurgeUnused(); // do the same for sounds - S_ClearUsed(); - for (i = 1;i < numsounds;i++) - { - CL_KeepaliveMessage(); - S_TouchSound(parse_sound_precache[i], true); - } - S_PurgeUnused(); + S_ServerSounds (parse_sound_precache, numsounds); // now we try to load everything that is new @@ -435,7 +429,9 @@ void CL_ParseServerInfo (void) for (i=1 ; i