Modified Files:
src/AIModel/AIMultiplayer.cxx: Apply longstanding patch from Maik Justus. Fix double aircraft.
This commit is contained in:
parent
f29a6dbf33
commit
2e32ccf393
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue