1
0
Fork 0

Set /sim/rendering/initialized to true at the appropriate moment and use it instead of /sim/initialized for the messagebox

This commit is contained in:
Erik Hofman 2016-07-21 13:55:31 +02:00
parent 08916602bb
commit c17c3595c8
2 changed files with 3 additions and 2 deletions

View file

@ -134,7 +134,7 @@ MessageBoxResult modalMessageBox(const std::string& caption,
s += "\n( " + moreText + ")";
}
if (fgGetBool("/sim/initialized", false) == false) {
if (fgGetBool("/sim/rendering/initialized", false) == false) {
SG_LOG(SG_GENERAL, SG_ALERT, s);
} else {
NewGUI* _gui = (NewGUI *)globals->get_subsystem("gui");
@ -161,7 +161,7 @@ MessageBoxResult fatalMessageBox(const std::string& caption,
if (!moreText.empty()) {
s += "\n( " + moreText + ")";
}
if (fgGetBool("/sim/initialized", false) == false) {
if (fgGetBool("/sim/rendering/initialized", false) == false) {
std::cerr << s << std::endl;
} else {
NewGUI* _gui = (NewGUI *)globals->get_subsystem("gui");

View file

@ -256,6 +256,7 @@ static void fgIdleFunction ( void ) {
fgSetVideoOptions();
idle_state+=2;
fgSplashProgress("loading-aircraft-list");
fgSetBool("/sim/rendering/initialized", true);
}
} else if ( idle_state == 2 ) {