From: Mircea Kitsune Date: Tue, 4 May 2010 13:07:02 +0000 (+0300) Subject: Fix an issue and attempt to precache player sounds (not sure if this is correct!) X-Git-Tag: xonotic-v0.1.0preview~637^2^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cd0697d385d43215ee128fbed57e76327e5e4698;p=xonotic%2Fxonotic-data.pk3dir.git Fix an issue and attempt to precache player sounds (not sure if this is correct!) --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index f87e148d9..cbf115c92 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -169,8 +169,9 @@ float player_getspecies() local string fn, l, file; local float tokens; - file = substring(self.model, 0, -5); // remove the extension at the end - UpdatePlayerSounds(strcat(file, ftos(sk))); + file = strcat(substring(self.model, 0, -5), ftos(self.skinindex)); // remove the extension at the end + PrecachePlayerSounds(file); + UpdatePlayerSounds(file); s = -1;