]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update player sounds when selecting a character of the same model but a different...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 25 Feb 2013 15:23:10 +0000 (17:23 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 25 Feb 2013 15:47:48 +0000 (16:47 +0100)
qcsrc/server/cl_client.qc

index 1c4f220e2706ade1e7ee30cb5079cf3f0056698b..be5138c92d41af91bc93571431ac9f6df2757582 100644 (file)
@@ -618,8 +618,11 @@ void FixPlayermodel()
                self.skin = stof(self.playerskin);
        }
 
-       if(chmdl || oldskin != self.skin)
-               self.species = player_getspecies(); // model or skin has changed
+       if(chmdl || oldskin != self.skin) // model or skin has changed
+       {
+               self.species = player_getspecies(); // update species
+               UpdatePlayerSounds(); // update skin sounds
+       }
 
        if(!teamplay)
                if(strlen(autocvar_sv_defaultplayercolors))