]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow loading self.model.sounds again, if per-character sound file is missing.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 4 May 2010 11:19:22 +0000 (14:19 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 4 May 2010 11:19:22 +0000 (14:19 +0300)
qcsrc/server/cl_player.qc

index df389f5da1587d8af7fae62c518289c3148129de..c5d85b793bf86606333242c17265922df91a0626 100644 (file)
@@ -1277,6 +1277,8 @@ void UpdatePlayerSounds(string filename)
        LoadPlayerSounds("sound/player/default.sounds", 1);
        if(filename != "")
                LoadPlayerSounds(strcat(filename, ".sounds"), 0);
+       else
+               LoadPlayerSounds(strcat(self.model, ".sounds"), 0); // backwards compatibility
 }
 
 void FakeGlobalSound(string sample, float chan, float voicetype)