]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/rnav_waypt_controller.cxx
Performance optimization
[flightgear.git] / src / Instrumentation / rnav_waypt_controller.cxx
index e0f30e92a1edf1f20e8af537191eb97d4da5105d..f893b9413ccabdb7d6943d7024465c2c1fa90cd1 100644 (file)
@@ -317,7 +317,9 @@ public:
     double curAlt = _rnav->position().getElevationFt();
     
     switch (_waypt->altitudeRestriction()) {
-    case RESTRICT_AT: {
+    case RESTRICT_AT: 
+    case RESTRICT_COMPUTED:  
+    {
       double d = curAlt - _waypt->altitudeFt();
       if (fabs(d) < 50.0) {
         SG_LOG(SG_INSTR, SG_INFO, "ConstHdgToAltCtl, reached target altitude " << _waypt->altitudeFt());
@@ -339,11 +341,7 @@ public:
       }
       break;
     
-    case RESTRICT_NONE:
-      assert(false);
-      break;
-    case SPEED_RESTRICT_MACH:
-      assert(false);
+    default:
       break;
     }
   }