1
0
Fork 0

Fix an init order bug and do some minor cleanups.

This commit is contained in:
curt 2002-10-16 02:02:39 +00:00
parent f962e24fee
commit f38c88b762
5 changed files with 7 additions and 18 deletions

View file

@ -99,8 +99,6 @@ FGDME::~FGDME()
void
FGDME::init ()
{
search();
update(0); // FIXME: use dt
}
void

View file

@ -114,8 +114,6 @@ FGKR_87::~FGKR_87() {
void FGKR_87::init () {
morse.init();
update(0); // FIXME: use dt
}

View file

@ -64,7 +64,6 @@ FGKT_70::~FGKT_70() { }
void FGKT_70::init () {
update(0); // FIXME: use dt
}

View file

@ -104,9 +104,6 @@ FGMarkerBeacon::init ()
morse.init();
beacon.init();
blink.stamp();
search();
update(0); // FIXME: use dt
}

View file

@ -90,9 +90,13 @@ FGNavCom::init ()
{
morse.init();
search();
update(0); // FIXME: use dt
// We assume that index is valid now (it must be set before init()
// is called.)
char propname[256];
sprintf( propname, "/systems/electrical/outputs/navcom[%d]", index );
// default to true in case no electrical system defined.
fgSetDouble( propname, 60.0 );
bus_power = fgGetNode( propname, true );
}
void
@ -165,13 +169,6 @@ FGNavCom::bind ()
fgTie( propname, this, &FGNavCom::get_nav_gs_needle_deflection );
// end of binding
// We know index is valid now so lets bind to the bus property
// here.
sprintf( propname, "/systems/electrical/outputs/navcom[%d]", index );
// default to true in case no electrical system defined.
fgSetDouble( propname, 60.0 );
bus_power = fgGetNode( propname, true );
}