From e6e618332f444c0bd437befa954059d169d664eb Mon Sep 17 00:00:00 2001
From: ehofman <ehofman>
Date: Sun, 23 Oct 2005 13:48:36 +0000
Subject: [PATCH] Add support for seasonal textures:
 --prop:/sim/startup/season=winter for now.

---
 src/Main/fg_init.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx
index ab5e53709..f20716dd6 100644
--- a/src/Main/fg_init.cxx
+++ b/src/Main/fg_init.cxx
@@ -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);
     }