1
0
Fork 0

set /sim/signals/reinit to true before reset, and back to zero after it;

otherwise the last Hobbs time couldn't be read out at a reset
This commit is contained in:
mfranz 2007-01-21 00:19:39 +00:00
parent 8a489eed0b
commit 6ebce11275

View file

@ -58,6 +58,7 @@ void reInit(puObject *cb)
fgSetBool("/sim/freeze/master", true); fgSetBool("/sim/freeze/master", true);
} }
fgSetBool("/sim/signals/reinit", true);
cur_fdm_state->unbind(); cur_fdm_state->unbind();
// in case user has changed window size as // in case user has changed window size as
@ -86,8 +87,7 @@ void reInit(puObject *cb)
globals->get_tile_mgr()->update( fgGetDouble("/environment/visibility-m") ); globals->get_tile_mgr()->update( fgGetDouble("/environment/visibility-m") );
globals->get_renderer()->resize( xsize, ysize ); globals->get_renderer()->resize( xsize, ysize );
fgSetBool("/sim/signals/reinit", false);
fgSetBool("/sim/signals/reinit", true);
if ( !freeze ) { if ( !freeze ) {
fgSetBool("/sim/freeze/master", false); fgSetBool("/sim/freeze/master", false);