Backed out changeset: 7bdb27443f88

This commit is contained in:
kaetemi 2014-07-28 22:15:09 +02:00
parent b6e703d8f7
commit a6327001dd

View file

@ -688,13 +688,15 @@ void updateWeather()
}
#endif
// FIXME: temporary fix for teleportation crash
// Update new sky
if (ContinentMngr.cur() && Driver->getPolygonMode() == UDriver::Filled && Filter3D[FilterSky])
if (ContinentMngr.cur() && !ContinentMngr.cur()->Indoor)
{
if(Driver->getPolygonMode() == UDriver::Filled)
{
if (Filter3D[FilterSky])
{
CSky &sky = ContinentMngr.cur()->CurrentSky;
if (!ContinentMngr.cur()->Indoor && sky.getScene())
if (sky.getScene())
{
s_SkyMode = NewSky;
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
@ -706,6 +708,8 @@ void updateWeather()
s_SkyMode = OldSky;
}
}
}
}
}
// ***************************************************************************************************************************