Use MHz when stating freqency on-air and call the base class update for response time handling
This commit is contained in:
parent
3610b0235c
commit
ca766f9aac
1 changed files with 5 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue