1
0
Fork 0

Fix another possible ATC stackdump

This commit is contained in:
daveluff 2004-03-22 22:09:47 +00:00
parent 7e395b47b7
commit 22d8f5a72c

View file

@ -649,13 +649,19 @@ void FGTower::ProcessDownwindReport(TowerPlaneRec* t) {
s = s.substr(0,p); s = s.substr(0,p);
trns += s; trns += s;
if((tt->opType) == CIRCUIT) { 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"; trns += " on final";
} else if(tt->planePtr->GetLeg() == TURN4) { } else if(leg == TURN4) {
trns += " turning final"; trns += " turning final";
} else if(tt->planePtr->GetLeg() == BASE) { } else if(leg == BASE) {
trns += " on base"; trns += " on base";
} else if(tt->planePtr->GetLeg() == TURN3) { } else if(leg == TURN3) {
trns += " turning base"; trns += " turning base";
} }
} else { } else {