Fix a property name that was missed in an earlier change.
This commit is contained in:
parent
e5a57189c9
commit
4e14316256
1 changed files with 2 additions and 2 deletions
|
@ -364,8 +364,8 @@ void FGElectricalSystem::update (double dt) {
|
|||
// naming conventions in the electrical system config) ... FIXME:
|
||||
// make this more generic
|
||||
double amps = 0.0;
|
||||
if ( fgGetBool("/controls/switches/master-bat") ) {
|
||||
if ( fgGetBool("/controls/switches/master-alt") &&
|
||||
if ( fgGetBool("/controls/engines/engine[0]/master-bat") ) {
|
||||
if ( fgGetBool("/controls/engines/engine[0]/master-alt") &&
|
||||
fgGetDouble("/engines/engine[0]/rpm") > 800 )
|
||||
{
|
||||
amps += 40.0 * alt_norm;
|
||||
|
|
Loading…
Add table
Reference in a new issue