From 50eb95dcadaf39d892212f2c5c6fe2459b190719 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 13 Jul 2010 21:50:44 +0100 Subject: [PATCH] Create TimeManager subsystem, and collect the time related code out of main.cxx and fg_init.cxx into it. Remove the unfortunately named 'tmp.[cxx|hxx]', pushing the remaining code in FGLight. --- projects/VC90/FlightGear/FlightGear.vcproj | 4 +- src/Main/fg_commands.cxx | 1 - src/Main/fg_init.cxx | 159 +-------- src/Main/fg_init.hxx | 8 - src/Main/main.cxx | 242 ++------------ src/Main/main.hxx | 2 - src/Main/renderer.cxx | 19 +- src/Network/native_fdm.cxx | 1 - src/Network/native_gui.cxx | 1 - src/Time/Makefile.am | 2 +- src/Time/TimeManager.cxx | 359 +++++++++++++++++++++ src/Time/TimeManager.hxx | 78 +++++ src/Time/light.cxx | 151 ++++++++- src/Time/light.hxx | 2 + src/Time/sunsolver.cxx | 1 - src/Time/tmp.cxx | 238 -------------- src/Time/tmp.hxx | 45 --- 17 files changed, 616 insertions(+), 697 deletions(-) create mode 100644 src/Time/TimeManager.cxx create mode 100644 src/Time/TimeManager.hxx delete mode 100644 src/Time/tmp.cxx delete mode 100644 src/Time/tmp.hxx diff --git a/projects/VC90/FlightGear/FlightGear.vcproj b/projects/VC90/FlightGear/FlightGear.vcproj index 9bf22509d..eacb7a081 100644 --- a/projects/VC90/FlightGear/FlightGear.vcproj +++ b/projects/VC90/FlightGear/FlightGear.vcproj @@ -4512,11 +4512,11 @@ > diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 1dd37d387..c277b6b73 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -37,7 +37,6 @@ #include #include #include