1
0
Fork 0

Remove unimplemented options from the ATC dialog for now

This commit is contained in:
daveluff 2003-10-07 12:26:28 +00:00
parent c89ea44131
commit 1a2ee0a908

View file

@ -45,10 +45,10 @@ ATCMenuEntry::ATCMenuEntry() {
ATCMenuEntry::~ATCMenuEntry() { ATCMenuEntry::~ATCMenuEntry() {
} }
static char* t0 = "Contact tower for landing"; static char* t0 = "No communication currently available";
static char* t1 = "Request departure clearance"; //static char* t1 = "Request departure clearance";
static char* t2 = "Report Runway vacated"; //static char* t2 = "Report Runway vacated";
static char** towerOptions = new char*[4]; static char** towerOptions = new char*[2];
// ----------------------- DCL ------------------------------------------ // ----------------------- DCL ------------------------------------------
// For the ATC dialog - copied from the Autopilot new heading dialog code! // For the ATC dialog - copied from the Autopilot new heading dialog code!
@ -117,6 +117,7 @@ static void ATCDialogOK (puObject *me)
case ATIS: case ATIS:
break; break;
case TOWER: { case TOWER: {
/*
FGTower* twr = (FGTower*)globals->get_ATC_mgr()->GetComm1ATCPointer(); FGTower* twr = (FGTower*)globals->get_ATC_mgr()->GetComm1ATCPointer();
switch(atcDialogCommunicationOptions->getValue()) { switch(atcDialogCommunicationOptions->getValue()) {
case 0: case 0:
@ -134,6 +135,7 @@ static void ATCDialogOK (puObject *me)
default: default:
break; break;
} }
*/
break; break;
} }
case GROUND: case GROUND:
@ -165,11 +167,11 @@ void ATCDialogInit()
// Option lists hardwired per ATC type // Option lists hardwired per ATC type
towerOptions[0] = new char[strlen(t0)+1]; towerOptions[0] = new char[strlen(t0)+1];
strcpy(towerOptions[0], t0); strcpy(towerOptions[0], t0);
towerOptions[1] = new char[strlen(t1)+1]; //towerOptions[1] = new char[strlen(t1)+1];
strcpy(towerOptions[1], t1); //strcpy(towerOptions[1], t1);
towerOptions[2] = new char[strlen(t2)+1]; //towerOptions[2] = new char[strlen(t2)+1];
strcpy(towerOptions[2], t2); //strcpy(towerOptions[2], t2);
towerOptions[3] = NULL; towerOptions[1] = NULL;
atcDialog = new puDialogBox (150, 50); atcDialog = new puDialogBox (150, 50);
{ {