fixed ambient sounds when rain is disabled.
This commit is contained in:
parent
21d06fd386
commit
cfe01253b9
|
@ -915,7 +915,7 @@ void Game::init(bool initForPreviewOnly) {
|
|||
withRainEffect = false;
|
||||
}
|
||||
|
||||
if(withRainEffect){
|
||||
if(withRainEffect) {
|
||||
//weather particle systems
|
||||
if(world.getTileset()->getWeather() == wRainy) {
|
||||
logger.add(Lang::getInstance().get("LogScreenGameLoadingCreatingRainParticles","",true), true);
|
||||
|
@ -933,6 +933,9 @@ void Game::init(bool initForPreviewOnly) {
|
|||
renderer.manageParticleSystem(weatherParticleSystem, rsGame);
|
||||
}
|
||||
}
|
||||
else if(world.getTileset()->getWeather() == wRainy) {
|
||||
world.getTileset()->setWeather(wSunny);
|
||||
}
|
||||
}
|
||||
|
||||
//init renderer state
|
||||
|
|
|
@ -151,6 +151,7 @@ public:
|
|||
const Vec3f &getSunLightColor() const {return sunLightColor;}
|
||||
const Vec3f &getMoonLightColor() const {return moonLightColor;}
|
||||
Weather getWeather() const {return weather;}
|
||||
void setWeather(Weather value) { weather = value; }
|
||||
|
||||
//surface textures
|
||||
const Pixmap2D *getSurfPixmap(int type, int var) const;
|
||||
|
|
Loading…
Reference in New Issue