UpdateLocal time when repositioning, the timezone might have changed
This commit is contained in:
parent
c5c7532179
commit
8a9cc389e4
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,7 @@
|
||||||
#include <simgear/embedded_resources/EmbeddedResourceManager.hxx>
|
#include <simgear/embedded_resources/EmbeddedResourceManager.hxx>
|
||||||
#include <simgear/props/props_io.hxx>
|
#include <simgear/props/props_io.hxx>
|
||||||
#include <simgear/scene/tsync/terrasync.hxx>
|
#include <simgear/scene/tsync/terrasync.hxx>
|
||||||
|
#include <simgear/timing/sg_time.hxx>
|
||||||
|
|
||||||
#include <simgear/scene/material/Effect.hxx>
|
#include <simgear/scene/material/Effect.hxx>
|
||||||
#include <simgear/scene/material/matlib.hxx>
|
#include <simgear/scene/material/matlib.hxx>
|
||||||
|
@ -1239,6 +1240,10 @@ void fgStartReposition()
|
||||||
globals->get_subsystem("instrumentation")->reinit();
|
globals->get_subsystem("instrumentation")->reinit();
|
||||||
globals->get_subsystem("xml-autopilot")->reinit();
|
globals->get_subsystem("xml-autopilot")->reinit();
|
||||||
|
|
||||||
|
// need to update the timezone
|
||||||
|
SGTime *t = globals->get_time_params();
|
||||||
|
t->updateLocal(globals->get_aircraft_position(), globals->get_fg_root() / "Timezone");
|
||||||
|
|
||||||
// setup state to end re-init
|
// setup state to end re-init
|
||||||
fgSetBool("/sim/signals/reinit", false);
|
fgSetBool("/sim/signals/reinit", false);
|
||||||
if ( !freeze ) {
|
if ( !freeze ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue