From e1661e0de12486da9ec83109b1f4139fc1be7b91 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 9 Jan 2022 15:18:35 +0100 Subject: [PATCH] - Duke: disabled sound limiting. This does not work with how the game uses sounds. Unlike Doom the sound engine in DOS Duke has no channel limit so any sound can play as many times as the game deems fit. --- 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 bae54e027..8cd4cefae 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 = 6; + sfx->NearLimit = 0; sfx->bTentative = false; sfx->name = std::move(fn); return 0;