]> git.mxchange.org Git - flightgear.git/commitdiff
Set /sim/rendering/initialized to true at the appropriate moment and use it instead...
authorErik Hofman <erik@ehofman.com>
Thu, 21 Jul 2016 11:55:31 +0000 (13:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:48 +0000 (23:27 +0200)
src/GUI/MessageBox.cxx
src/Main/main.cxx

index 846752af859a8d6a03ab7f538acacff505302966..67276448a20619b80dc8a48f9c489bf3377361e6 100644 (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");
index d66d8adfe82dd71f08ff24720ce818d5e7e802e6..b001a2d6400012546782d2011379db6bac5e85db 100644 (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 ) {