Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 4:57:51 PM (18 years ago)
Author:
amaechler
Message:

sound fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/snow_effect.cc

    r8457 r8480  
    5353        }
    5454
    55         if(snowActivate)
     55  if(snowActivate) {
    5656                this->activate();
     57    SnowEffect::snowParticles->precache((int) this->snowLife);
     58  } 
    5759}
    5860
     
    139141        this->emitter->setSize(snowSize);
    140142
    141   SnowEffect::snowParticles->precache((int) this->snowLife);
    142 
    143         if (this->snowWindForce > 1)
    144                 this->soundSource.loop(this->windBuffer);
     143  if (this->snowWindForce != 0)
     144    this->soundSource.play(this->windBuffer, 0.1f * this->snowWindForce, true);
     145 
    145146}
    146147
Note: See TracChangeset for help on using the changeset viewer.