From: James Turner Date: Mon, 4 Oct 2010 08:13:26 +0000 (+0100) Subject: Remove uneccessary explicit update of FGLight X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b2cea33e8bd9e2739f5ebb2ec6ff1668d7f7b9b;p=flightgear.git Remove uneccessary explicit update of FGLight --- 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()