1
0
Fork 0

Multiplayer: ensure that avionics sounds are null for MP models.

This commit is contained in:
Richard Harrison 2017-04-02 13:54:03 +02:00
parent 5d23fa71ff
commit b020db5ce7

View file

@ -75,6 +75,8 @@ FGFX::FGFX ( const std::string &refname, SGPropertyNode *props ) :
_avionics = _smgr->find("avionics", true);
_avionics->tie_to_listener();
}
else
_avionics = NULL;
}
void FGFX::unbind()
@ -174,7 +176,7 @@ FGFX::update (double dt)
if ( _enabled->getBoolValue() ) {
if ( _avionics_enabled->getBoolValue())
if ( _avionics && _avionics_enabled->getBoolValue())
{
if (_avionics_ext->getBoolValue() || _internal->getBoolValue()) {
// avionics sound is enabled