Hi,
Fix SU-37 broken trajectory-markers toggle command.
Alexis
Index: SU-37-set.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/SU-37/SU-37-set.xml,v
retrieving revision 1.5
diff -u -p -r1.5 SU-37-set.xml
--- SU-37-set.xml 20 Dec 2006 19:09:39 -0000 1.5
+++ SU-37-set.xml 11 Apr 2007 14:46:54 -0000
@@ -299,6 +299,12 @@ SU-37 simulation config.
</keyboard>
</input>
+ <ai>
+ <submodels>
+ <trajectory-markers type="bool">0</trajectory-markers>
+ </submodels>
+ </ai>
+
<autopilot>
<!-- FCS -->
<FCS>
Index: Nasal/SU-37-trajectory-markers.nas
===================================================================
RCS file:
/var/cvs/FlightGear-0.9/data/Aircraft/SU-37/Nasal/SU-37-trajectory-markers.nas,v
retrieving revision 1.1
diff -u -p -r1.1 SU-37-trajectory-markers.nas
--- Nasal/SU-37-trajectory-markers.nas 20 Oct 2006 21:12:07 -0000 1.1
+++ Nasal/SU-37-trajectory-markers.nas 11 Apr 2007 14:44:05 -0000
@@ -1,10 +1,13 @@
# Trajectory marker functions
#--------------------------------------------------------------------
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);
}
}
#--------------------------------------------------------------------
-------------------------------------------------------------------------
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel