]> git.mxchange.org Git - flightgear.git/commitdiff
Fix #1744: disable commradio when unserviceable
authorGijs de Rooy <gijsrooy@hotmail.com>
Mon, 25 Jan 2016 15:38:57 +0000 (16:38 +0100)
committerGijs de Rooy <gijsrooy@hotmail.com>
Mon, 25 Jan 2016 15:38:57 +0000 (16:38 +0100)
src/Instrumentation/commradio.cxx

index 102cca5f1a1cb76167288894c83c578665f295b2..854ee87e60cec1acd7a2524c5ec0b78e0fe0d853 100644 (file)
@@ -653,7 +653,7 @@ void CommRadioImpl::update(double dt)
   }
 #endif
 
-  if (false == (_power_btn)) {
+  if (false == (_power_btn) || false == (_serviceable)) {
     _metarBridge->clearMetar();
     _atis = "";
     _stationTTL = 0.0;