Sometime ago my radar patch introduced a "valid" property to ai models.
Attached patch updates the code drawing the HUD target circles to test
this flag so that invalid entries don't get displayed.

Thanks to AnMaster for reporting and testing.

Greets,
Csaba
Index: src/Instrumentation/HUD/HUD_ladder.cxx
===================================================================
RCS file: 
/var/cvs/FlightGear-0.9/source/src/Instrumentation/HUD/HUD_ladder.cxx,v
retrieving revision 1.25
diff -u -r1.25 HUD_ladder.cxx
--- src/Instrumentation/HUD/HUD_ladder.cxx      1 Aug 2006 18:46:59 -0000       
1.25
+++ src/Instrumentation/HUD/HUD_ladder.cxx      13 May 2007 18:10:16 -0000
@@ -278,8 +278,8 @@
             string name;
             name = chld->getName();
             if (name == "aircraft" || name == "multiplayer") {
-                string callsign = chld->getStringValue("callsign");
-                if (callsign != "") {
+                bool valid = chld->getBoolValue("valid", false);
+                if (valid) {
                     float h_deg = chld->getFloatValue("radar/h-offset");
                     float v_deg = chld->getFloatValue("radar/v-offset");
                     float pos_x = (h_deg * cos(roll_value) -
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to