]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Precache it too
authorMario <mario@smbclan.net>
Mon, 26 Oct 2015 00:43:37 +0000 (10:43 +1000)
committerMario <mario@smbclan.net>
Mon, 26 Oct 2015 00:43:37 +0000 (10:43 +1000)
qcsrc/common/triggers/func/door.qc
qcsrc/common/triggers/func/door_secret.qc

index 921642406e6d8b357e9a2250e755572ec5fae855..e05351b095943a46c0ee362b5e850d4d49191aa9 100644 (file)
@@ -736,6 +736,7 @@ spawnfunc(func_door)
 
        if(self.noise == "")
                self.noise = "misc/talk.wav";
+       precache_sound(self.noise);
 
        self.blocked = door_blocked;
        self.use = door_use;
index ac7361951f0e6596790b07506d2d3a3304f2f10e..a0b70ecebee27fdfd2645552b2c2bce195e3befc 100644 (file)
@@ -212,6 +212,7 @@ spawnfunc(func_door_secret)
 
        if(self.noise == "")
                self.noise = "misc/talk.wav";
+       precache_sound(self.noise);
 
        self.touch = secret_touch;
        self.blocked = secret_blocked;