Fix scenery reload issues.
Aircraft could fall through the ground on scenery reload.
This commit is contained in:
parent
82d66caaf2
commit
da2ee04eea
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue