1
0
Fork 0

Fix ATIS output.

Need to call inherited update to control volume and enable/disable
depending on sound ATC switch.
This commit is contained in:
ThorstenB 2012-10-05 00:07:40 +02:00
parent 06a8a9c536
commit 109d04b605
2 changed files with 7 additions and 0 deletions

View file

@ -81,6 +81,9 @@ FGATC::~FGATC() {
// call this from their own Update(...).
void FGATC::update(double dt) {
// TODO This doesn't really do anything specific to this instance.
// All FGATCs share the same "_sgr" sound group. So this really should
// only be done once for all FGATCs.
#ifdef ENABLE_AUDIO_SUPPORT
bool active = _atc_external->getBoolValue() ||
_internal->getBoolValue();

View file

@ -76,6 +76,8 @@ FGATIS::FGATIS(const std::string& name, int num) :
trans_ident(""),
old_volume(0),
atis_failed(false),
msg_time(0),
cur_time(0),
msg_OK(0),
_attention(false),
_prev_display(0),
@ -221,6 +223,8 @@ void FGATIS::update(double dt) {
_prev_display = false;
}
_attention = false;
FGATC::update(dt);
}
string uppercase(const string &s) {