]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIMultiplayer.cxx
Interim windows build fix
[flightgear.git] / src / AIModel / AIMultiplayer.cxx
index 7021269f3413c25f5eb6838ff45da6dc5f7f1b86..a4176b3a6d7076fb0e0726a2051384a2dc827251 100644 (file)
@@ -28,6 +28,9 @@
 #include <string>
 #include <stdio.h>
 
+#include <Main/globals.hxx>
+#include <Main/fg_props.hxx>
+
 #include "AIMultiplayer.hxx"
 
 using std::string;
@@ -154,6 +157,7 @@ void FGAIMultiplayer::update(double dt)
     } else if (compensateLag == 1) { offset = curentPkgTime - curtime - lag;
 
     // using the prediction mode to display the mpaircraft in the futur/past with given playerlag value
+    //currently compensatelag = 2
     } else { offset = curentPkgTime - curtime + 0.48*lag + playerLag;
     }
     if ((!mAllowExtrapolation && offset + lag < mTimeOffset)
@@ -385,7 +389,7 @@ void FGAIMultiplayer::update(double dt)
 
        // not doing rotationnal prediction for small speed or rotation rate,
        // to avoid agitated parked plane
-    if (( norm(angularVel) > 0.05 ) or ( normVel > 1.0 )) {
+    if (( norm(angularVel) > 0.05 ) || ( normVel > 1.0 )) {
                ecOrient += t*ecOrient.derivative(angularVel);
        }