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:
parent
8a489eed0b
commit
6ebce11275
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue