Hi,
ComperSwift update since trajectory-markers toggle command is broken.
Alexis
Index: Nasal/ComperSwift.nas
===================================================================
RCS file:
/var/cvs/FlightGear-0.9/data/Aircraft/ComperSwift/Nasal/ComperSwift.nas,v
retrieving revision 1.2
diff -u -p -r1.2 ComperSwift.nas
--- Nasal/ComperSwift.nas 20 Aug 2006 22:37:54 -0000 1.2
+++ Nasal/ComperSwift.nas 11 Apr 2007 14:16:22 -0000
@@ -9,10 +9,13 @@ controls.flapsDown = func(v) {
}
#--------------------------------------------------------------------
toggle_traj_mkr = func {
- if(getprop("ai/submodels/trajectory-markers") < 1) {
- setprop("ai/submodels/trajectory-markers", 1);
+ if(getprop("/ai/submodels/trajectory-markers") == nil) {
+ setprop("/ai/submodels/trajectory-markers", 0);
+ }
+ if(getprop("/ai/submodels/trajectory-markers") < 1) {
+ setprop("/ai/submodels/trajectory-markers", 1);
} else {
- setprop("ai/submodels/trajectory-markers", 0);
+ setprop("/ai/submodels/trajectory-markers", 0);
}
}
#--------------------------------------------------------------------
Index: ComperSwift-set.xml
===================================================================
RCS file:
/var/cvs/FlightGear-0.9/data/Aircraft/ComperSwift/ComperSwift-set.xml,v
retrieving revision 1.11
diff -u -p -r1.11 ComperSwift-set.xml
--- ComperSwift-set.xml 20 Aug 2006 22:37:54 -0000 1.11
+++ ComperSwift-set.xml 11 Apr 2007 14:15:57 -0000
@@ -179,6 +179,12 @@ Comper Swift simulation config.
</keyboard>
</input>
+ <ai>
+ <submodels>
+ <trajectory-markers type="bool">0</trajectory-markers>
+ </submodels>
+ </ai>
+
<autopilot>
<settings>
<target-agl-ft type="float">800</target-agl-ft>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel