From ab51d8ca5c3e9ba32fd3c4c2a229e6dfe42ad769 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 12 Aug 1998 21:41:27 +0000 Subject: [PATCH] Need to negate the test for textures so that textures aren't loaded when they are disabled rather than visa versa ... :-) --- Scenery/material.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Scenery/material.cxx b/Scenery/material.cxx index ccb1150e3..013c1853e 100644 --- a/Scenery/material.cxx +++ b/Scenery/material.cxx @@ -143,7 +143,7 @@ int fgMATERIAL_MGR::load_lib ( void ) { fgPrintf( FG_TERRAIN, FG_INFO, "Bad alpha value '%s'\n", line ); } } else if ( (strncmp(line_ptr, "texture", 7) == 0) && - current_options.get_textures() ) { + !current_options.get_textures() ) { // do nothing } else if ( strncmp(line_ptr, "texture", 7) == 0 ) { line_ptr += 7; @@ -300,6 +300,10 @@ fgMATERIAL_MGR::~fgMATERIAL_MGR ( void ) { // $Log$ +// Revision 1.12 1998/08/12 21:41:27 curt +// Need to negate the test for textures so that textures aren't loaded when +// they are disabled rather than visa versa ... :-) +// // Revision 1.11 1998/08/12 21:13:03 curt // material.cxx: don't load textures if they are disabled // obj.cxx: optimizations from Norman Vine -- 2.39.2