]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix an issue and attempt to precache player sounds (not sure if this is correct!)
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 4 May 2010 13:07:02 +0000 (16:07 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 4 May 2010 13:07:02 +0000 (16:07 +0300)
qcsrc/server/cl_player.qc

index f87e148d9f8370deacd1f36c88ee5b25c7fcdec0..cbf115c92d50b9f2f669e9bdc9e4360e80e317e2 100644 (file)
@@ -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;