]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/NavDisplay.cxx
Bugfixes and some finetuning:
[flightgear.git] / src / Instrumentation / NavDisplay.cxx
index 92207e6a6c2bcd131c6d7d819687f731bfee015e..83de81bbf8b4100fbe1c4a045568c10f8aae1294 100644 (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");