|
|
@ -688,22 +688,26 @@ void updateWeather()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: temporary fix for teleportation crash
|
|
|
|
|
|
|
|
// Update new sky
|
|
|
|
// Update new sky
|
|
|
|
if (ContinentMngr.cur() && Driver->getPolygonMode() == UDriver::Filled && Filter3D[FilterSky])
|
|
|
|
if (ContinentMngr.cur() && !ContinentMngr.cur()->Indoor)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CSky &sky = ContinentMngr.cur()->CurrentSky;
|
|
|
|
if(Driver->getPolygonMode() == UDriver::Filled)
|
|
|
|
|
|
|
|
|
|
|
|
if (!ContinentMngr.cur()->Indoor && sky.getScene())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
s_SkyMode = NewSky;
|
|
|
|
|
|
|
|
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
|
|
|
|
|
|
|
|
// Setup the sky camera
|
|
|
|
|
|
|
|
preRenderNewSky();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
s_SkyMode = OldSky;
|
|
|
|
if (Filter3D[FilterSky])
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CSky &sky = ContinentMngr.cur()->CurrentSky;
|
|
|
|
|
|
|
|
if (sky.getScene())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
s_SkyMode = NewSky;
|
|
|
|
|
|
|
|
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
|
|
|
|
|
|
|
|
// Setup the sky camera
|
|
|
|
|
|
|
|
preRenderNewSky();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
s_SkyMode = OldSky;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|