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:
parent
08916602bb
commit
c17c3595c8
2 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue