mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Toaster suggestions for e82bba18
This commit is contained in:
parent
e82bba18f6
commit
170d0a2fb9
1 changed files with 4 additions and 4 deletions
|
|
@ -1013,10 +1013,10 @@ fixed_t S_CalculateSoundDistance(fixed_t sx1, fixed_t sy1, fixed_t sz1, fixed_t
|
||||||
|
|
||||||
INT32 S_GetSoundVolume(sfxinfo_t *sfx, INT32 volume)
|
INT32 S_GetSoundVolume(sfxinfo_t *sfx, INT32 volume)
|
||||||
{
|
{
|
||||||
if (sfx->volume < 0)
|
if (sfx->volume > 0)
|
||||||
return volume;
|
return (volume * sfx->volume) / 100;
|
||||||
else
|
|
||||||
return volume * sfx->volume / 100;
|
return volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue