]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Wed, 22 Nov 2006 17:16:19 +0000 (17:16 +0000)
committerfrohlich <frohlich>
Wed, 22 Nov 2006 17:16:19 +0000 (17:16 +0000)
src/AIModel/AIMultiplayer.cxx: Apply longstanding patch from Maik
Justus. Fix double aircraft.

src/AIModel/AIMultiplayer.cxx

index 5a908afa82c20f66e9b01ff82baf2ccf9ccff0a9..9a0e80e6f5de8005e3891128e373c20a80cf5e8c 100755 (executable)
@@ -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);