From: daveluff Date: Sat, 20 Mar 2004 02:56:13 +0000 (+0000) Subject: Release the frequency after finishing a transmission X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80761c515e837f33a98da78777d594b4e3b21300;p=flightgear.git Release the frequency after finishing a transmission --- diff --git a/src/ATC/ATC.cxx b/src/ATC/ATC.cxx index d76ba74cf..ca6e99e30 100644 --- a/src/ATC/ATC.cxx +++ b/src/ATC/ATC.cxx @@ -122,6 +122,10 @@ void FGATC::Update(double dt) { _transmitting = false; //if(tuned_station) tuned_station->NotifyTransmissionFinished(plane.callsign); // TODO - need to let the plane the transmission is aimed at that it's finished. + // However, for now we'll just release the frequency since if we don't it all goes pear-shaped + _releaseCounter = 0.0; + _releaseTime = 0.9; + _runReleaseCounter = true; } _counter += dt; }