1
0
Fork 0

Fix scenery reload issues.

Aircraft could fall through the ground on scenery reload.
This commit is contained in:
ThorstenB 2012-04-07 16:35:04 +02:00
parent 82d66caaf2
commit da2ee04eea

View file

@ -101,8 +101,10 @@ void FGTileMgr::refresh_tile(void* tileMgr, long tileIndex)
void FGTileMgr::reinit()
{
// reset flag, stop FDM processing, otherwise aircraft fall through
// the ground while reloading scenery
// protect against multiple scenery reloads and properly reset flags,
// otherwise aircraft fall through the ground while reloading scenery
if (!fgGetBool("/sim/sceneryloaded",true))
return;
fgSetBool("/sim/sceneryloaded",false);
fgSetDouble("/sim/startup/splash-alpha", 1.0);