remove experimental and unused code (we read the splash screen style
from /sim/gui/style[0] since a while, not from the preferred style. This allows overriding it from *-set.xml files.)
This commit is contained in:
parent
74391d55a1
commit
eb38d1f92b
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue