1
0
Fork 0

Have update check that sound is enabled.

This commit is contained in:
david 2002-10-03 21:21:44 +00:00
parent 38f0d6a35c
commit d1f5f04423

View file

@ -64,7 +64,7 @@ FGFX::init()
path.append(path_str.c_str());
SG_LOG(SG_GENERAL, SG_INFO, "Reading Instrument " << node->getName()
<< " from " << path.str());
<< " from " << path.str());
SGPropertyNode root;
try {
@ -97,8 +97,10 @@ FGFX::unbind ()
void
FGFX::update (double dt)
{
for (unsigned int i = 0; i < _sound.size(); i++ )
_sound[i]->update(dt);
if (fgGetBool("/sim/sound/audible")) {
for (unsigned int i = 0; i < _sound.size(); i++ )
_sound[i]->update(dt);
}
}
// end of fg_fx.cxx