]> git.mxchange.org Git - flightgear.git/blobdiff - src/Radio/radio.cxx
Clean-up: move autosave.xml loading code to proper method
[flightgear.git] / src / Radio / radio.cxx
index 34f43cf69fb05950de769a85ed885ac5cbefd9f5..169cd322f19bb650c25806fde84f76d8fde3d46b 100644 (file)
@@ -211,7 +211,8 @@ void FGRadioTransmission::receiveATC(SGGeod tx_pos, double freq, string text, in
 double FGRadioTransmission::ITM_calculate_attenuation(SGGeod pos, double freq, int transmission_type) {
 
        
-       
+       if((freq < 40.0) || (freq > 20000.0))   // frequency out of recommended range 
+               return -1;
        /** ITM default parameters 
                TODO: take them from tile materials (especially for sea)?
        **/