- Probably shouldn't allow negative range scalars for ambient sound things...

SVN r2230 (trunk)
This commit is contained in:
Randy Heit 2010-03-18 21:10:15 +00:00
parent d012165f57
commit 5ec5d74267
1 changed files with 1 additions and 1 deletions

View File

@ -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];