Have update check that sound is enabled.
This commit is contained in:
parent
38f0d6a35c
commit
d1f5f04423
1 changed files with 5 additions and 3 deletions
|
@ -64,7 +64,7 @@ FGFX::init()
|
||||||
|
|
||||||
path.append(path_str.c_str());
|
path.append(path_str.c_str());
|
||||||
SG_LOG(SG_GENERAL, SG_INFO, "Reading Instrument " << node->getName()
|
SG_LOG(SG_GENERAL, SG_INFO, "Reading Instrument " << node->getName()
|
||||||
<< " from " << path.str());
|
<< " from " << path.str());
|
||||||
|
|
||||||
SGPropertyNode root;
|
SGPropertyNode root;
|
||||||
try {
|
try {
|
||||||
|
@ -97,8 +97,10 @@ FGFX::unbind ()
|
||||||
void
|
void
|
||||||
FGFX::update (double dt)
|
FGFX::update (double dt)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < _sound.size(); i++ )
|
if (fgGetBool("/sim/sound/audible")) {
|
||||||
_sound[i]->update(dt);
|
for (unsigned int i = 0; i < _sound.size(); i++ )
|
||||||
|
_sound[i]->update(dt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// end of fg_fx.cxx
|
// end of fg_fx.cxx
|
||||||
|
|
Loading…
Add table
Reference in a new issue