mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 21:45:33 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6facce9d13
2 changed files with 7 additions and 2 deletions
|
@ -1550,12 +1550,14 @@ void SkyManager::setWeather(const WeatherResult& weather)
|
||||||
{
|
{
|
||||||
mNextClouds = weather.mNextCloudTexture;
|
mNextClouds = weather.mNextCloudTexture;
|
||||||
|
|
||||||
|
if (!mNextClouds.empty())
|
||||||
|
{
|
||||||
std::string texture = Misc::ResourceHelpers::correctTexturePath(mNextClouds, mSceneManager->getVFS());
|
std::string texture = Misc::ResourceHelpers::correctTexturePath(mNextClouds, mSceneManager->getVFS());
|
||||||
|
|
||||||
if (!texture.empty())
|
|
||||||
mCloudUpdater2->setTexture(mSceneManager->getTextureManager()->getTexture2D(texture,
|
mCloudUpdater2->setTexture(mSceneManager->getTextureManager()->getTexture2D(texture,
|
||||||
osg::Texture::REPEAT, osg::Texture::REPEAT));
|
osg::Texture::REPEAT, osg::Texture::REPEAT));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (mCloudBlendFactor != weather.mCloudBlendFactor)
|
if (mCloudBlendFactor != weather.mCloudBlendFactor)
|
||||||
{
|
{
|
||||||
|
|
|
@ -158,6 +158,9 @@ Weather::Weather(const std::string& name,
|
||||||
else
|
else
|
||||||
mAmbientLoopSoundID = fallback.getFallbackString("Weather_" + name + "_Ambient_Loop_Sound_ID");
|
mAmbientLoopSoundID = fallback.getFallbackString("Weather_" + name + "_Ambient_Loop_Sound_ID");
|
||||||
|
|
||||||
|
if (Misc::StringUtils::ciEqual(mAmbientLoopSoundID, "None"))
|
||||||
|
mAmbientLoopSoundID.clear();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Unhandled:
|
Unhandled:
|
||||||
Rain Diameter=600 ?
|
Rain Diameter=600 ?
|
||||||
|
|
Loading…
Reference in a new issue