mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- Probably shouldn't allow negative range scalars for ambient sound things...
SVN r2230 (trunk)
This commit is contained in:
parent
d012165f57
commit
5ec5d74267
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue