]> git.mxchange.org Git - flightgear.git/commitdiff
Added an #ifdef for compiling without --with-new-environment. Thanks
authordavid <david>
Sat, 23 Feb 2002 04:50:47 +0000 (04:50 +0000)
committerdavid <david>
Sat, 23 Feb 2002 04:50:47 +0000 (04:50 +0000)
to Tony Peden for the catch.

src/Main/main.cxx

index 697e0e7306594fa49932f4edfb1ea08193e3eb61..fdbc4b9eb625a819e5196de1b712c03e7d7a0094 100644 (file)
@@ -1450,7 +1450,9 @@ int mainLoop( int argc, char **argv ) {
 
     globals = new FGGlobals;
 
+#if defined(FG_NEW_ENVIRONMENT)
     globals->set_environment_mgr(new FGEnvironmentMgr);
+#endif
 
     // seed the random number generater
     sg_srandom_time();