]> git.mxchange.org Git - flightgear.git/commitdiff
Use MHz when stating freqency on-air and call the base class update for response...
authordaveluff <daveluff>
Wed, 15 Oct 2003 14:11:50 +0000 (14:11 +0000)
committerdaveluff <daveluff>
Wed, 15 Oct 2003 14:11:50 +0000 (14:11 +0000)
src/ATC/ground.cxx

index c152a622bd86e6d78767302041a9333455798c5a..5f0072f5e03ae8f741f796546f7a5344b5c20c93 100644 (file)
@@ -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.