X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Frnav_waypt_controller.cxx;h=f893b9413ccabdb7d6943d7024465c2c1fa90cd1;hb=805c4cbba15c6922e511b3a20ba5a9cb56ceed4f;hp=e0f30e92a1edf1f20e8af537191eb97d4da5105d;hpb=3f3755fda27e40596d5e418ade89091aee7f00bc;p=flightgear.git diff --git a/src/Instrumentation/rnav_waypt_controller.cxx b/src/Instrumentation/rnav_waypt_controller.cxx index e0f30e92a..f893b9413 100644 --- a/src/Instrumentation/rnav_waypt_controller.cxx +++ b/src/Instrumentation/rnav_waypt_controller.cxx @@ -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; } }