1
0
Fork 0

ITM radio calculations are only considered valid

between 40 MHz and 20 GHz.
Fix for bug which assigns a frequency of 0 MHz to
AI aircraft, thus resulting in infinite values.
This commit is contained in:
adrian 2012-01-09 19:47:25 +02:00 committed by ThorstenB
parent e82c36d76b
commit 045912f5a7

View 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)?
**/