]> git.mxchange.org Git - flightgear.git/commitdiff
Add support for seasonal textures: --prop:/sim/startup/season=winter for now.
authorehofman <ehofman>
Sun, 23 Oct 2005 13:48:36 +0000 (13:48 +0000)
committerehofman <ehofman>
Sun, 23 Oct 2005 13:48:36 +0000 (13:48 +0000)
src/Main/fg_init.cxx

index ab5e53709477299a38bde9e52d973e7c15bf1838..f20716dd62aa52a7f96c6ae76ec9823ed372f4ab 100644 (file)
@@ -1598,7 +1598,8 @@ bool fgInitSubsystems() {
 
     SGPath mpath( globals->get_fg_root() );
     mpath.append( "materials.xml" );
-    if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str()) ) {
+    string season = fgGetString("/sim/startup/season", "summer");
+    if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), season.c_str()) ) {
         SG_LOG( SG_GENERAL, SG_ALERT, "Error loading material lib!" );
         exit(-1);
     }