mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-24 15:56:22 +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,26 +688,22 @@ void updateWeather()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// FIXME: temporary fix for teleportation crash
|
||||||
// Update new sky
|
// Update new sky
|
||||||
if (ContinentMngr.cur() && !ContinentMngr.cur()->Indoor)
|
if (ContinentMngr.cur() && Driver->getPolygonMode() == UDriver::Filled && Filter3D[FilterSky])
|
||||||
{
|
{
|
||||||
if(Driver->getPolygonMode() == UDriver::Filled)
|
CSky &sky = ContinentMngr.cur()->CurrentSky;
|
||||||
|
|
||||||
|
if (!ContinentMngr.cur()->Indoor && sky.getScene())
|
||||||
{
|
{
|
||||||
if (Filter3D[FilterSky])
|
s_SkyMode = NewSky;
|
||||||
{
|
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
|
||||||
CSky &sky = ContinentMngr.cur()->CurrentSky;
|
// Setup the sky camera
|
||||||
if (sky.getScene())
|
preRenderNewSky();
|
||||||
{
|
}
|
||||||
s_SkyMode = NewSky;
|
else
|
||||||
sky.getScene()->animate(TimeInSec-FirstTimeInSec);
|
{
|
||||||
// Setup the sky camera
|
s_SkyMode = OldSky;
|
||||||
preRenderNewSky();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
s_SkyMode = OldSky;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue