From 28996902a1792ee2395cec206a39a933169c6e07 Mon Sep 17 00:00:00 2001 From: frohlich Date: Fri, 22 May 2009 18:20:58 +0000 Subject: [PATCH] Adapt to simgears changes. The season is already checked by the properties. Modified Files: src/Main/fg_init.cxx --- src/Main/fg_init.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 607684dd6..b602efdf3 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -1465,8 +1465,7 @@ bool fgInitSubsystems() { SGPath mpath( globals->get_fg_root() ); mpath.append( "materials.xml" ); - string season = fgGetString("/sim/startup/season", "summer"); - if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), season.c_str(), + if ( ! globals->get_matlib()->load(globals->get_fg_root(), mpath.str(), globals->get_props()) ) { SG_LOG( SG_GENERAL, SG_ALERT, "Error loading material lib!" ); exit(-1); -- 2.39.5