]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIEscort.cxx
NavDisplay: fix update lag when switching range or centre.
[flightgear.git] / src / AIModel / AIEscort.cxx
index 680b5113f992920e112b3c3ea1dbe00edfaab692..c88e9af334adf5afac1530819877a71a8c438e56 100644 (file)
@@ -134,7 +134,11 @@ void FGAIEscort::unbind() {
 bool FGAIEscort::init(bool search_in_AI_path) {
     if (!FGAIShip::init(search_in_AI_path))
         return false;
+    reinit();
+    return true;
+}
 
+void FGAIEscort::reinit() {
     invisible = false;
     no_roll = false;
 
@@ -147,7 +151,7 @@ bool FGAIEscort::init(bool search_in_AI_path) {
         hdg = _parent_hdg;
     }
 
-    return true;
+    FGAIShip::reinit();
 }
 
 void FGAIEscort::update(double dt) {