From 3dffb7f24560930a11099a7277ccd6f392e40b22 Mon Sep 17 00:00:00 2001 From: cypress Date: Wed, 17 Apr 2024 19:36:32 -0700 Subject: [PATCH] SERVER: Make ching.wav precache global It's used in too many places to precache on a per-entity basis reliably. --- source/server/entities/doors.qc | 1 - source/server/entities/wall_weapon.qc | 2 -- source/server/main.qc | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/server/entities/doors.qc b/source/server/entities/doors.qc index 6a58a1f..a8304f0 100644 --- a/source/server/entities/doors.qc +++ b/source/server/entities/doors.qc @@ -663,7 +663,6 @@ void() func_door_nzp = if (!roundinit) { if (self.cost) { self.classname = "door_nzp_cost"; - precache_sound("sounds/misc/ching.wav"); switch(self.sounds) { case 1: precache_sound("sounds/misc/wood_door.wav"); break; diff --git a/source/server/entities/wall_weapon.qc b/source/server/entities/wall_weapon.qc index d315656..5488683 100644 --- a/source/server/entities/wall_weapon.qc +++ b/source/server/entities/wall_weapon.qc @@ -445,6 +445,4 @@ void() buy_weapon = self.nextthink = time + 0.2; ach_tracker_col2++; - - precache_sound("sounds/misc/ching.wav"); }; diff --git a/source/server/main.qc b/source/server/main.qc index bdf60ba..5f70a6a 100644 --- a/source/server/main.qc +++ b/source/server/main.qc @@ -272,6 +272,7 @@ void() precaches = precache_sound("sounds/music/end.wav"); // purchasing + precache_sound("sounds/misc/ching.wav"); precache_sound("sounds/misc/buy.wav"); precache_sound("sounds/misc/denybuy.wav");