Hi,
Fix broken trajectory-markers toggle command.
Alexis
Index: Nasal/MiG-15bis.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/MiG-15/Nasal/MiG-15bis.nas,v
retrieving revision 1.5
diff -u -p -r1.5 MiG-15bis.nas
--- Nasal/MiG-15bis.nas 26 Jun 2006 17:55:08 -0000 1.5
+++ Nasal/MiG-15bis.nas 11 Apr 2007 14:29:28 -0000
@@ -224,10 +224,13 @@ toggle_canopy = func {
}
#--------------------------------------------------------------------
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: MiG-15bis-set.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/MiG-15/MiG-15bis-set.xml,v
retrieving revision 1.2
diff -u -p -r1.2 MiG-15bis-set.xml
--- MiG-15bis-set.xml 24 Jun 2006 02:36:57 -0000 1.2
+++ MiG-15bis-set.xml 11 Apr 2007 14:29:09 -0000
@@ -218,6 +218,12 @@ MiG-15bis simulation config.
</keyboard>
</input>
+ <ai>
+ <submodels>
+ <trajectory-markers type="bool">0</trajectory-markers>
+ </submodels>
+ </ai>
+
<!-- Autopilot -->
<autopilot>
<settings>
-------------------------------------------------------------------------
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