]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIShip.cxx
Improve timing statistics
[flightgear.git] / src / AIModel / AIShip.cxx
index 9eecd6c970f4870ca4ae51c445cb6564b29b7066..9b6a0470524e8fc2b017bc4fd3a412875a91abe0 100644 (file)
@@ -620,6 +620,10 @@ double FGAIShip::getCourse(double lat, double lon, double lat2, double lon2) con
 
 void FGAIShip::ProcessFlightPlan(double dt) {
 
+    if ( dt < 0.00001 ) {
+       return;
+    }
+
     double time_sec = getDaySeconds();
 
     _dt_count += dt;