From ca766f9aaccab7f4c5e4fd8b68e33ab648aa78bf Mon Sep 17 00:00:00 2001 From: daveluff Date: Wed, 15 Oct 2003 14:11:50 +0000 Subject: [PATCH] Use MHz when stating freqency on-air and call the base class update for response time handling --- src/ATC/ground.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ATC/ground.cxx b/src/ATC/ground.cxx index c152a622b..5f0072f5e 100644 --- a/src/ATC/ground.cxx +++ b/src/ATC/ground.cxx @@ -331,9 +331,9 @@ void FGGround::Update(double dt) { // NOTE - we don't need to do the contact tower bit unless we have separate tower and ground string trns = g->plane.callsign; trns += " contact Tower "; - double f = globals->get_ATC_mgr()->GetFrequency(ident, TOWER); + double f = globals->get_ATC_mgr()->GetFrequency(ident, TOWER) / 100.0; char buf[10]; - sprintf(buf, "%f", f); + sprintf(buf, "%.2f", f); trns += buf; if(display) { globals->get_ATC_display()->RegisterSingleMessage(trns, 0); @@ -345,6 +345,9 @@ void FGGround::Update(double dt) { } ++ground_traffic_itr; } + + // Call the base class update for the response time handling. + FGATC::Update(dt); } // Figure out which runways are active. -- 2.39.5