]> git.mxchange.org Git - flightgear.git/commitdiff
remove experimental and unused code (we read the splash screen style
authormfranz <mfranz>
Mon, 7 Aug 2006 15:19:22 +0000 (15:19 +0000)
committermfranz <mfranz>
Mon, 7 Aug 2006 15:19:22 +0000 (15:19 +0000)
from /sim/gui/style[0] since a while, not from the preferred style.
This allows overriding it from *-set.xml files.)

src/Main/splash.cxx

index fef5c0c011bd4ff91ef5a7e5d2210c277a23966b..4cf41a544b7a52211236a838f32ef55aca3f1339 100644 (file)
@@ -56,7 +56,7 @@
 
 static const char *progress_text = 0;
 static SGTexture splash;
-SGPropertyNode_ptr style;
+SGPropertyNode_ptr style = 0;
 
 
 // Initialize the splash screen
@@ -65,11 +65,7 @@ void fgSplashInit ( const char *splash_texture ) {
 
     SG_LOG( SG_GENERAL, SG_INFO, "Initializing splash screen" );
 
-    int which = fgGetInt("/sim/gui/current-style", 0);
-    SGPropertyNode *sim = fgGetNode("/sim/gui", true);
-    style = sim->getChild("style", 0/*which*/); // always use style[0]?
-    if (!style)
-        style = sim->getChild("style", 0, true);
+    style = fgGetNode("/sim/gui/style[0]", true);
 
     if (!fgGetBool("/sim/startup/splash-screen"))
         return;