mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-25 09:22:33 +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)
|
||||
{
|
||||
if (sfx->volume < 0)
|
||||
return volume;
|
||||
else
|
||||
return volume * sfx->volume / 100;
|
||||
if (sfx->volume > 0)
|
||||
return (volume * sfx->volume) / 100;
|
||||
|
||||
return volume;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue