mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
- Comment fix.
SVN r2232 (trunk)
This commit is contained in:
parent
6c63ce51e4
commit
1eed01244c
1 changed files with 1 additions and 1 deletions
|
@ -1973,7 +1973,7 @@ void AAmbientSound::Tick ()
|
|||
if (ambient->sound.IsNotEmpty())
|
||||
{
|
||||
// The second argument scales the ambient sound's volume.
|
||||
// 0 and 128 are normal volume. The maximum volume level
|
||||
// 0 and 100 are normal volume. The maximum volume level
|
||||
// possible is always 1.
|
||||
float volscale = args[1] == 0 ? 1 : args[1] / 100.f;
|
||||
float usevol = clamp(ambient->volume * volscale, 0.f, 1.f);
|
||||
|
|
Loading…
Reference in a new issue