From 9b2cea33e8bd9e2739f5ebb2ec6ff1668d7f7b9b Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 4 Oct 2010 09:13:26 +0100 Subject: [PATCH] Remove uneccessary explicit update of FGLight --- src/Main/globals.hxx | 1 - src/Main/main.cxx | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/Main/globals.hxx b/src/Main/globals.hxx index 20f1a6de4..50bd24e67 100644 --- a/src/Main/globals.hxx +++ b/src/Main/globals.hxx @@ -62,7 +62,6 @@ class FGFlightPlanDispatcher; class FGNavList; class FGAirwayNetwork; class FGTACANList; -class FGLight; class FGModelMgr; class FGRouteMgr; class FGScenery; diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 4e15fea75..1cfe91ba2 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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() -- 2.39.5