From 72631d96a81be00d361859373475be609318fd6d Mon Sep 17 00:00:00 2001 From: cypress Date: Sat, 26 Aug 2023 09:43:26 -0400 Subject: [PATCH] SERVER: convert bad misc/buy.wav on teddy_spawn --- source/server/entities/map_entities.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/server/entities/map_entities.qc b/source/server/entities/map_entities.qc index e014426..4a85db0 100644 --- a/source/server/entities/map_entities.qc +++ b/source/server/entities/map_entities.qc @@ -132,8 +132,11 @@ void() teddy_spawn = self.health = 0; self.th_die = teddy_react; - if (self.noise) - precache_sound (self.noise); + if (self.noise) { + // FIXME: make a convert_old_sound_path function like we do for models. + if (self.noise == "misc/buy.wav") self.noise = "sounds/misc/buy.wav"; + precache_sound (self.noise); + } }; /* ==================