1
0
Fork 0
fgdata/Nasal
mfranz 0f07c14bd3 getBoolValue() on an undefined node shall return "false", not "true".
This isn't only more logical, it's also how SGPropertyNode::getBoolValue()
acts. The fix has potential to break code, but so far I haven't seen any
problems. I added a debug message to my copy and will for a while check
all cases that I run into. To check yourself, just add one line:

    getBoolValue : func {
        val = me.getValue();
+       if(val == nil) { debug.dump(me) }
        if(me.getType() == "STRING" and val == "false") { 0 }
        else { val != nil and val != 0 }
    }

This will output a debug message to the terminal for each case where
formerly "true" was returned, and now "false" is.
2007-02-05 11:40:49 +00:00
..
aircraft.nas - add all entries in /sim/aircraft-data/path[*] to the save-list, so that one 2007-01-26 23:33:25 +00:00
atc-chatter.nas noise reduction: only print file names if --log-level is at least "info" 2006-02-17 22:20:15 +00:00
controls.nas add interface function for selecting weapons 2006-06-24 12:31:58 +00:00
debug.nas cosmetics and stuff 2007-01-30 23:22:36 +00:00
dynamic_view.nas use /sim/signals/nasal-dir-initialized signal to simplify things 2007-01-22 00:03:07 +00:00
fuel.nas - don't create tanks in empty tank nodes (that nasty native_fdm.cxx causes) 2007-01-31 15:53:01 +00:00
globals.nas use __ for static variables (one underscore is too handy for use in other 2006-02-18 00:12:09 +00:00
gui.nas call setWeightOpts on reset, too 2007-01-31 21:37:14 +00:00
lead_target.nas use gui.Dialog() class instead of gui.loadXMLDialog() function (which has 2006-08-24 16:32:58 +00:00
material.nas make <Esc> key close/cancel/dismiss dialogs; some material.nas tweaking 2005-11-05 14:19:53 +00:00
multiplayer.nas Modified Files: 2006-10-10 05:23:38 +00:00
props.nas getBoolValue() on an undefined node shall return "false", not "true". 2007-02-05 11:40:49 +00:00
screen.nas use /sim/signals/nasal-dir-initialized signal for library initialization; 2007-01-21 20:56:25 +00:00
track_target.nas using printlog() wasn't a good idea, as we don't know if globals.nas was 2006-08-17 18:56:22 +00:00
tutorial.nas fix property name (I had changed that in the environment files, and 2006-08-18 15:50:53 +00:00
view.nas add resetFOV function 2006-03-02 16:23:05 +00:00