1
0
Fork 0

Tweak scenery-loaded logic

Make first-start (not a reset / re-init) behaviour more explicit.
This commit is contained in:
James Turner 2014-11-15 16:29:30 +00:00
parent 51e5add743
commit 71da5b7a76

View file

@ -168,11 +168,15 @@ void FGTileMgr::reinit()
_options->setModelData(new FGNasalModelDataProxy);
// 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);
if (state != Start)
{
// protect against multiple scenery reloads and properly reset flags,
// otherwise aircraft fall through the ground while reloading scenery
if (_scenery_loaded->getBoolValue() == false)
return;
}
_scenery_loaded->setBoolValue(false);
fgSetDouble("/sim/startup/splash-alpha", 1.0);
materialLibChanged();