mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 01:23:35 +02:00
fixed ambient sounds when rain is disabled.
This commit is contained in:
@@ -933,6 +933,9 @@ void Game::init(bool initForPreviewOnly) {
|
|||||||
renderer.manageParticleSystem(weatherParticleSystem, rsGame);
|
renderer.manageParticleSystem(weatherParticleSystem, rsGame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(world.getTileset()->getWeather() == wRainy) {
|
||||||
|
world.getTileset()->setWeather(wSunny);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//init renderer state
|
//init renderer state
|
||||||
|
@@ -151,6 +151,7 @@ public:
|
|||||||
const Vec3f &getSunLightColor() const {return sunLightColor;}
|
const Vec3f &getSunLightColor() const {return sunLightColor;}
|
||||||
const Vec3f &getMoonLightColor() const {return moonLightColor;}
|
const Vec3f &getMoonLightColor() const {return moonLightColor;}
|
||||||
Weather getWeather() const {return weather;}
|
Weather getWeather() const {return weather;}
|
||||||
|
void setWeather(Weather value) { weather = value; }
|
||||||
|
|
||||||
//surface textures
|
//surface textures
|
||||||
const Pixmap2D *getSurfPixmap(int type, int var) const;
|
const Pixmap2D *getSurfPixmap(int type, int var) const;
|
||||||
|
Reference in New Issue
Block a user