mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 01:18:46 +00:00
Backed out changeset: 7bdb27443f88
This commit is contained in:
parent
f81032039a
commit
5aef77afe5
1 changed files with 17 additions and 13 deletions
|
@ -688,13 +688,15 @@ 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)
|
||||||
|
{
|
||||||
|
if(Driver->getPolygonMode() == UDriver::Filled)
|
||||||
|
{
|
||||||
|
if (Filter3D[FilterSky])
|
||||||
{
|
{
|
||||||
CSky &sky = ContinentMngr.cur()->CurrentSky;
|
CSky &sky = ContinentMngr.cur()->CurrentSky;
|
||||||
|
if (sky.getScene())
|
||||||
if (!ContinentMngr.cur()->Indoor && sky.getScene())
|
|
||||||
{
|
{
|
||||||
s_SkyMode = NewSky;
|
s_SkyMode = NewSky;
|
||||||
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
|
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
|
||||||
|
@ -707,6 +709,8 @@ void updateWeather()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ***************************************************************************************************************************
|
// ***************************************************************************************************************************
|
||||||
// Render all scenes
|
// Render all scenes
|
||||||
|
|
Loading…
Reference in a new issue