Multiplayer: ensure that avionics sounds are null for MP models.
This commit is contained in:
parent
5d23fa71ff
commit
b020db5ce7
1 changed files with 3 additions and 1 deletions
|
@ -75,6 +75,8 @@ FGFX::FGFX ( const std::string &refname, SGPropertyNode *props ) :
|
||||||
_avionics = _smgr->find("avionics", true);
|
_avionics = _smgr->find("avionics", true);
|
||||||
_avionics->tie_to_listener();
|
_avionics->tie_to_listener();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
_avionics = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FGFX::unbind()
|
void FGFX::unbind()
|
||||||
|
@ -174,7 +176,7 @@ FGFX::update (double dt)
|
||||||
|
|
||||||
|
|
||||||
if ( _enabled->getBoolValue() ) {
|
if ( _enabled->getBoolValue() ) {
|
||||||
if ( _avionics_enabled->getBoolValue())
|
if ( _avionics && _avionics_enabled->getBoolValue())
|
||||||
{
|
{
|
||||||
if (_avionics_ext->getBoolValue() || _internal->getBoolValue()) {
|
if (_avionics_ext->getBoolValue() || _internal->getBoolValue()) {
|
||||||
// avionics sound is enabled
|
// avionics sound is enabled
|
||||||
|
|
Loading…
Add table
Reference in a new issue