From cd0697d385d43215ee128fbed57e76327e5e4698 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Tue, 4 May 2010 16:07:02 +0300 Subject: [PATCH] Fix an issue and attempt to precache player sounds (not sure if this is correct!) --- qcsrc/server/cl_player.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.2