mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 01:48:44 +00:00
Changed: #71 Crash when entering rooms (patch provided by Tierry Anthony, thanks!)
This commit is contained in:
parent
03896bf787
commit
dd6f57601e
1 changed files with 13 additions and 17 deletions
|
@ -688,15 +688,13 @@ void updateWeather()
|
|||
}
|
||||
#endif
|
||||
|
||||
// FIXME: temporary fix for teleportation crash
|
||||
// Update new sky
|
||||
if (ContinentMngr.cur() && !ContinentMngr.cur()->Indoor)
|
||||
{
|
||||
if(Driver->getPolygonMode() == UDriver::Filled)
|
||||
{
|
||||
if (Filter3D[FilterSky])
|
||||
if (ContinentMngr.cur() && Driver->getPolygonMode() == UDriver::Filled && Filter3D[FilterSky])
|
||||
{
|
||||
CSky &sky = ContinentMngr.cur()->CurrentSky;
|
||||
if (sky.getScene())
|
||||
|
||||
if (!ContinentMngr.cur()->Indoor && sky.getScene())
|
||||
{
|
||||
s_SkyMode = NewSky;
|
||||
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
|
||||
|
@ -709,8 +707,6 @@ void updateWeather()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ***************************************************************************************************************************
|
||||
// Render all scenes
|
||||
|
|
Loading…
Reference in a new issue