From: frohlich Date: Wed, 22 Nov 2006 17:16:19 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e32ccf3936f5baa3fad407c9ed68605a4974c68;p=flightgear.git Modified Files: src/AIModel/AIMultiplayer.cxx: Apply longstanding patch from Maik Justus. Fix double aircraft. --- diff --git a/src/AIModel/AIMultiplayer.cxx b/src/AIModel/AIMultiplayer.cxx index 5a908afa8..9a0e80e6f 100755 --- a/src/AIModel/AIMultiplayer.cxx +++ b/src/AIModel/AIMultiplayer.cxx @@ -129,7 +129,8 @@ void FGAIMultiplayer::update(double dt) mTimeOffset = curentPkgTime - curtime - lag; } else { double offset = curentPkgTime - curtime - lag; - if (!mAllowExtrapolation && offset + lag < mTimeOffset) { + if ((!mAllowExtrapolation && offset + lag < mTimeOffset) + || (offset - 10 > mTimeOffset)) { mTimeOffset = offset; SG_LOG(SG_GENERAL, SG_DEBUG, "Resetting time offset adjust system to " "avoid extrapolation: time offset = " << mTimeOffset);