]> git.mxchange.org Git - flightgear.git/commitdiff
Remove uneccessary explicit update of FGLight
authorJames Turner <zakalawe@mac.com>
Mon, 4 Oct 2010 08:13:26 +0000 (09:13 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 5 Oct 2010 22:17:32 +0000 (23:17 +0100)
src/Main/globals.hxx
src/Main/main.cxx

index 20f1a6de42d0168865f4d86c955ad6aafb92891d..50bd24e679a5c6a756fc67ff8e01e151fc1fe585 100644 (file)
@@ -62,7 +62,6 @@ class FGFlightPlanDispatcher;
 class FGNavList;
 class FGAirwayNetwork;
 class FGTACANList;
-class FGLight;
 class FGModelMgr;
 class FGRouteMgr;
 class FGScenery;
index 4e15fea753f93d3a13d4688db3f8518e33b1b165..1cfe91ba2054598a255eb6a71c0eb8811d26582e 100644 (file)
@@ -132,11 +132,6 @@ static void fgMainLoop( void ) {
     // compute simulated time (allowing for pause, warp, etc) and
     // real elapsed time
     timeMgr->computeTimeDeltas(sim_dt, real_dt);
-    
-    if (globals->get_warp_delta() != 0) {
-        FGLight *l = (FGLight *)(globals->get_subsystem("lighting"));
-        l->update( 0.5 );
-    }
 
     // update magvar model
     globals->get_mag()->update( longitude->getDoubleValue()