diff --git a/projects/VC90/FlightGear/FlightGear.vcproj b/projects/VC90/FlightGear/FlightGear.vcproj index 364454c1b..fd2548b0a 100644 --- a/projects/VC90/FlightGear/FlightGear.vcproj +++ b/projects/VC90/FlightGear/FlightGear.vcproj @@ -3198,6 +3198,30 @@ > + + + + + + + + + + + + diff --git a/src/Instrumentation/kr_87.cxx b/src/Instrumentation/kr_87.cxx index 0fa58012e..8ea39569c 100644 --- a/src/Instrumentation/kr_87.cxx +++ b/src/Instrumentation/kr_87.cxx @@ -524,7 +524,9 @@ void FGKR_87::search() { xyz = adf->cart(); if ( _sgr->exists( "adf-ident" ) ) { - _sgr->remove( "adf-ident" ); + // stop is required! -- remove alone wouldn't stop immediately + _sgr->stop( "adf-ident" ); + _sgr->remove( "adf-ident" ); } SGSoundSample *sound; sound = FGMorse::instance()->make_ident( trans_ident, FGMorse::LO_FREQUENCY ); diff --git a/src/Radio/itm.cpp b/src/Radio/itm.cpp index 28f7004b4..bf42ee2e8 100644 --- a/src/Radio/itm.cpp +++ b/src/Radio/itm.cpp @@ -1000,7 +1000,7 @@ double avar(double zzt, double zzl, double zzc, prop_type &prop, propv_type &pro kdv = propv.mdvar; no_situation_variability = kdv >= 20; if (no_situation_variability) - no_situation_variability -= 20; + kdv -= 20; no_location_variability = kdv >= 10; if (no_location_variability) diff --git a/src/Radio/radio.cxx b/src/Radio/radio.cxx index efb5baf53..fba504746 100644 --- a/src/Radio/radio.cxx +++ b/src/Radio/radio.cxx @@ -362,9 +362,11 @@ double FGRadioTransmission::ITM_calculate_attenuation(SGGeod pos, double freq, i _elevations.push_front(point_distance); _elevations.push_front(num_points -1); + int size = _elevations.size(); double *itm_elev; itm_elev = new double[size]; + for(int i=0;iset_volume( volumeNorm ); if (!_sgr->add( sound, _fx_name )) { SG_LOG(SG_SOUND, SG_WARN, "Failed to add sound '" << _fx_name << "' for ident '" << ident << "'" ); + delete sound; return; }