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:
terminx 2019-08-29 19:00:42 +00:00 committed by Christoph Oelckers
parent dcf9768c20
commit e6cb2e4a8d
1 changed files with 5 additions and 2 deletions

View File

@ -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