mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Use a sound's volume offset parameter as the max distance if the explosion flag is set
git-svn-id: https://svn.eduke32.com/eduke32@8058 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
dcf9768c20
commit
e6cb2e4a8d
1 changed files with 5 additions and 2 deletions
|
@ -610,9 +610,12 @@ sound_further_processing:
|
|||
#ifndef EDUKE32_STANDALONE
|
||||
boost:
|
||||
#endif
|
||||
int const sdist = g_sounds[soundNum].vo > 0 ? g_sounds[soundNum].vo : 6144;
|
||||
|
||||
explosion = true;
|
||||
if (sndist > 6144)
|
||||
sndist = 6144;
|
||||
|
||||
if (sndist > sdist)
|
||||
sndist = sdist;
|
||||
}
|
||||
|
||||
#ifndef EDUKE32_STANDALONE
|
||||
|
|
Loading…
Reference in a new issue