From d051b800cc28b529d25acb81468365bfdd01ffd0 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Thu, 24 Mar 2011 23:41:12 +0100 Subject: [PATCH] Minor replay issues restore most recent frame --- src/Aircraft/replay.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Aircraft/replay.cxx b/src/Aircraft/replay.cxx index bd3bab7bf..d5deeecd2 100644 --- a/src/Aircraft/replay.cxx +++ b/src/Aircraft/replay.cxx @@ -159,11 +159,6 @@ void FGReplay::update( double dt ) if ( disable_replay->getBoolValue() ) { - if (replay_master->getIntValue()) - { - // replay was active, restore most recent frame - replay(DBL_MAX); - } replay_master->setIntValue(0); replay_time->setDoubleValue(0); disable_replay->setBoolValue(0); @@ -184,6 +179,8 @@ void FGReplay::update( double dt ) if ((replay_state == 0)&& (last_replay_state > 0)) { + // replay was active, restore most recent frame + replay(DBL_MAX); // replay is finished, resume FDM ((FDMShell*) globals->get_subsystem("flight"))->getFDM()->resume(); }