From 5ec5d742673f5fb659738f905139a3a89eacb467 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 18 Mar 2010 21:10:15 +0000 Subject: [PATCH] - Probably shouldn't allow negative range scalars for ambient sound things... SVN r2230 (trunk) --- src/s_advsound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_advsound.cpp b/src/s_advsound.cpp index 1ab3558ac..94e2c4ac8 100644 --- a/src/s_advsound.cpp +++ b/src/s_advsound.cpp @@ -1990,7 +1990,7 @@ void AAmbientSound::Tick () { float min = float(args[2]), max = float(args[3]); // The fifth argument acts as a scalar for the preceding two, if it's non-zero. - if (args[4] != 0) + if (args[4] > 0) { min *= args[4]; max *= args[4];