Fix another possible ATC stackdump
This commit is contained in:
parent
7e395b47b7
commit
22d8f5a72c
1 changed files with 10 additions and 4 deletions
|
@ -649,13 +649,19 @@ void FGTower::ProcessDownwindReport(TowerPlaneRec* t) {
|
|||
s = s.substr(0,p);
|
||||
trns += s;
|
||||
if((tt->opType) == CIRCUIT) {
|
||||
if(tt->planePtr->GetLeg() == FINAL) {
|
||||
PatternLeg leg;
|
||||
if(t->isUser) {
|
||||
leg = tt->leg;
|
||||
} else {
|
||||
leg = tt->planePtr->GetLeg();
|
||||
}
|
||||
if(leg == FINAL) {
|
||||
trns += " on final";
|
||||
} else if(tt->planePtr->GetLeg() == TURN4) {
|
||||
} else if(leg == TURN4) {
|
||||
trns += " turning final";
|
||||
} else if(tt->planePtr->GetLeg() == BASE) {
|
||||
} else if(leg == BASE) {
|
||||
trns += " on base";
|
||||
} else if(tt->planePtr->GetLeg() == TURN3) {
|
||||
} else if(leg == TURN3) {
|
||||
trns += " turning base";
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue