mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +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]);
|
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.
|
// 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];
|
min *= args[4];
|
||||||
max *= args[4];
|
max *= args[4];
|
||||||
|
|
Loading…
Reference in a new issue