]> git.mxchange.org Git - flightgear.git/commitdiff
Remove unimplemented options from the ATC dialog for now
authordaveluff <daveluff>
Tue, 7 Oct 2003 12:26:28 +0000 (12:26 +0000)
committerdaveluff <daveluff>
Tue, 7 Oct 2003 12:26:28 +0000 (12:26 +0000)
src/ATC/ATCDialog.cxx

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