1
0
Fork 0

Nav-display: expose TCAS threat level correctly.

This commit is contained in:
James Turner 2011-12-27 20:19:10 +00:00
parent f0c729f2d5
commit 36fc0367d2

View file

@ -1161,7 +1161,10 @@ void NavDisplay::computeAIStates(const SGPropertyNode* ai, string_set& states)
int threatLevel = ai->getIntValue("tcas/threat-level",-1);
if (threatLevel >= 0) {
states.insert("tcas");
// states.insert("tcas-threat-level-" + itoa(threatLevel));
std::ostringstream os;
os << "tcas-threat-level-" << threatLevel;
states.insert(os.str());
}
double vspeed = ai->getDoubleValue("velocities/vertical-speed-fps");