HHS81 / ec135

EC135 P2 for FlightGear
GNU General Public License v2.0
2 stars 6 forks source link

No shutdown sound on init #29

Closed SebDieBln closed 7 years ago

SebDieBln commented 7 years ago

When starting FlightGear the shutdown sounds for both engines were played. This PR adds more conditions to avoid that:

The second condition is necessary because the property running is set only when reaching 17% N1, so without it the shutdown sound would be played during startup. The N1-condition can not be set to 17%, because the sounds stops playing once the value drops below the limit.

While working on this, I fixed a small bug: The property running was only set to TRUE on the first start of an engine. Subsequent starts would not set the property again.

HHS81 commented 7 years ago

Thanks