We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da21660 commit b000204Copy full SHA for b000204
source/game/scene/particle_system.cpp
@@ -551,6 +551,9 @@ bool ParticleSystem::preRender(render::RenderDriver& driver) {
551
if(msOffset > 64)
552
sound->setPlayPosition(msOffset);
553
double base_dist = abs_scale * (flow->life.max * flow->speed.max + flow->scale.max);
554
+ if (base_dist < 0) {
555
+ base_dist *= -1;
556
+ }
557
sound->setMinDistance(base_dist);
558
sound->setMaxDistance(base_dist * 128.f);
559
sound->setVolume(base_dist);
0 commit comments