Home
last modified time | relevance | path

Searched refs:sMaxSoundDist (Results 1 – 1 of 1) sorted by relevance

/dports/games/jaggedalliance2/ja2-stracciatella-0.18.0/src/game/Utils/
H A DSound_Control.cc830 double const sMaxSoundDist = sqrt((double)(sMaxDistX * sMaxDistX) + (sMaxDistY * sMaxDistY)); in PositionSoundVolume() local
835 if (sSoundDist > sMaxSoundDist) sSoundDist = sMaxSoundDist; in PositionSoundVolume()
838 return (INT8)(initial_volume * ((sMaxSoundDist - sSoundDist) / sMaxSoundDist)); in PositionSoundVolume()