]> git.mxchange.org Git - flightgear.git/commitdiff
Minor edit.
authorDave Luff <daveluff@ntlworld.com>
Sat, 15 Jan 2011 14:27:08 +0000 (14:27 +0000)
committerDave Luff <daveluff@ntlworld.com>
Sat, 15 Jan 2011 14:27:08 +0000 (14:27 +0000)
I don't think these 2 lines are required - true is set as the default value above.

src/Instrumentation/adf.cxx

index 41ee7700ed9860ce64b730839aad080f3cbdc13a..94171731d4c10b996173caebfe176366d78a3a94 100644 (file)
@@ -103,9 +103,6 @@ ADF::init ()
     _ident_audible_node = node->getChild("ident-audible", 0, true);
     _power_btn_node = node->getChild("power-btn", 0, true);
 
-    if (_power_btn_node->getType() == simgear::props::NONE) 
-      _power_btn_node->setBoolValue(true); // front end didn't implement a power button
-
     SGSoundMgr *smgr = globals->get_soundmgr();
     _sgr = smgr->find("avionics", true);
     _sgr->tie_to_listener();