Nick wrote > > Hi all, > > Flying the Spitfire, if you get airborne and then drop the > throttle to zero, > the gear warning alarm klaxon sounds. Hitting 'k' or 'K' to > turn this off > then produces: > > Nasal runtime error: non-objects have no members > at > /usr/share/FlightGear/data/Aircraft/Spitfire/Models/spitfire.n > as, line 76 > > >From now on the throttle boost gauge will not work. > > > The reason is in spitifre.nas, line 46 a global var: > > throttle = > props.globals.getNode("/controls/engines/engine/throttle", 1); > > later in spitfire.nas in the 'resetWarn = func{ }' is this, line 493: > > throttle = getprop("controls/engines/engine/throttle"); > > so here the second assignment stomps on the first. I guess renaming > the 'throttle' var in this func to something else fixes this, > but also it can > be declared in the func as a local var: > > var throttle = getprop("controls/engines/engine/throttle"); > > to fix it. >
Thanks, Nick, I can reproduce that here. I'm on the case, Vivian ------------------------------------------------------------------------- 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