Hi,

This patch replace the previous one wich was lost in the stream.
Discussed today with Lee who agrees.

Modified files:
   /data/Aircraft/BAC-TSR2/BAC-TSR2-set
   /data/Aircraft/BAC-TSR2/Nasal/BAC-TSR2.nas

Log Message:
   Fix broken trajectory-markers toggle command.

Thanks,

Alexis



Index: Nasal/BAC-TSR2.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/BAC-TSR2/Nasal/BAC-TSR2.nas,v
retrieving revision 1.4
diff -u -p -r1.4 BAC-TSR2.nas
--- Nasal/BAC-TSR2.nas  12 Aug 2005 18:13:07 -0000      1.4
+++ Nasal/BAC-TSR2.nas  29 Apr 2007 19:50:06 -0000
@@ -242,12 +242,9 @@ atl_heading = func {
   }
 }
 #--------------------------------------------------------------------
-toggle_traj_mkr = func {
-  if(getprop("ai/submodels/trajectory-markers") < 1) {
-    setprop("ai/submodels/trajectory-markers", 1);
-  } else {
-    setprop("ai/submodels/trajectory-markers", 0);
-  }
+var toggle_traj_mkr = func {
+    var p = "/ai/submodels/trajectory-markers";
+    setprop(p, !getprop(p));
 }
 #--------------------------------------------------------------------
 initialise_drop_view_pos = func {
Index: BAC-TSR2-set.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/BAC-TSR2/BAC-TSR2-set.xml,v
retrieving revision 1.6
diff -u -p -r1.6 BAC-TSR2-set.xml
--- BAC-TSR2-set.xml    12 Aug 2005 18:13:07 -0000      1.6
+++ BAC-TSR2-set.xml    11 Apr 2007 13:58:56 -0000
@@ -212,6 +212,12 @@ BAC TSR2 simulation config.
     </keyboard>
   </input>
 
+  <ai>
+    <submodels>
+      <trajectory-markers type="bool">0</trajectory-markers>
+    </submodels>
+  </ai>
+
 <!-- Autopilot -->
   <autopilot>
     <settings>
-------------------------------------------------------------------------
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