]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug with old-style binary scenery compatibilty where no ground lighting
authorcurt <curt>
Sun, 8 Jul 2001 23:38:56 +0000 (23:38 +0000)
committercurt <curt>
Sun, 8 Jul 2001 23:38:56 +0000 (23:38 +0000)
was generated.

src/Scenery/tileentry.cxx

index 404ee80c164875e3c3c0629602c50e70ca3d7714..3a9720eb152f8724de57f5fc94c0a9a9b81cbf92 100644 (file)
@@ -540,10 +540,7 @@ FGTileEntry::load( const SGPath& base, bool is_base )
     } else {
         // no .stg file so this must be old scenery
 
-        // fgObjLoad will generate ground lighting for us ...
-        ssgVertexArray *light_pts = new ssgVertexArray( 100 );
-
-        new_tile = obj_load( basename.str(), light_pts, is_base );
+        new_tile = obj_load( basename.str(), light_pts, true );
 
         // load custom objects
         SG_LOG( SG_TERRAIN, SG_DEBUG, "Checking for custom objects ..." );