1
0
Fork 0

reaneble ai modeul sound effects

This commit is contained in:
Erik Hofman 2011-12-12 10:49:09 +01:00
parent 7c79e16d8d
commit babe714de7

View file

@ -53,7 +53,6 @@ FGFX::FGFX ( SGSoundMgr *smgr, const string &refname, SGPropertyNode *props ) :
_enabled->setBoolValue(fgGetBool("/sim/sound/effects/enabled"));
_volume = _props->getNode("/sim/sound/aimodels/volume", true);
_volume->setFloatValue(fgGetFloat("/sim/sound/effects/volume"));
_volume->setFloatValue(0.1f);
}
_avionics_enabled = _props->getNode("sim/sound/avionics/enabled", true);
@ -113,7 +112,7 @@ FGFX::init()
}
node = root.getNode("fx");
if(node && !_is_aimodel) {
if(node) {
for (int i = 0; i < node->nChildren(); ++i) {
SGXmlSound *soundfx = new SGXmlSound();