From 26d89e932a6ded1e72548cbcd181a9dee599c770 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 15 Jan 2022 11:56:38 +0100 Subject: [PATCH] - Duke: add back a limit to the teleporter sound. Due to broken game logic it is possible for this to play in very large quantities. --- source/games/duke/src/sounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/sounds.cpp b/source/games/duke/src/sounds.cpp index 8cd4cefae..2b942c678 100644 --- a/source/games/duke/src/sounds.cpp +++ b/source/games/duke/src/sounds.cpp @@ -233,7 +233,7 @@ int S_DefineSound(unsigned index, const char *filename, int minpitch, int maxpit sndinf[kVolAdjust] = clamp(distance, INT16_MIN, INT16_MAX); sndinf[kWorldTourMapping] = 0; sfx->Volume = volume; - sfx->NearLimit = 0; + sfx->NearLimit = index == TELEPORTER + 1? 6 : 0; // the teleporter sound cannot be unlimited due to how it gets used. sfx->bTentative = false; sfx->name = std::move(fn); return 0;