Try to make the replay system honor /sim/speed-up, but not fully working yet.
This commit is contained in:
parent
658a838ea0
commit
c5110a3650
1 changed files with 6 additions and 6 deletions
|
@ -977,7 +977,8 @@ void fgUpdateTimeDepCalcs() {
|
||||||
FGReplay *r = (FGReplay *)(globals->get_subsystem( "replay" ));
|
FGReplay *r = (FGReplay *)(globals->get_subsystem( "replay" ));
|
||||||
r->replay( replay_time->getDoubleValue() );
|
r->replay( replay_time->getDoubleValue() );
|
||||||
replay_time->setDoubleValue( replay_time->getDoubleValue()
|
replay_time->setDoubleValue( replay_time->getDoubleValue()
|
||||||
+ delta_time_sec );
|
+ ( delta_time_sec
|
||||||
|
* fgGetInt("/sim/speed-up") ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// do nothing, fdm isn't inited yet
|
// do nothing, fdm isn't inited yet
|
||||||
|
@ -1743,7 +1744,6 @@ static bool fgMainInit( int argc, char **argv ) {
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Initialize the view manager subsystem.
|
// Initialize the view manager subsystem.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
FGViewMgr *viewmgr = new FGViewMgr;
|
FGViewMgr *viewmgr = new FGViewMgr;
|
||||||
globals->set_viewmgr( viewmgr );
|
globals->set_viewmgr( viewmgr );
|
||||||
viewmgr->init();
|
viewmgr->init();
|
||||||
|
|
Loading…
Reference in a new issue