This commit is contained in:
Charles 2001-07-26 15:45:30 +00:00
parent c8705cf823
commit a30985f2c0
2 changed files with 3 additions and 3 deletions

View File

@ -234,7 +234,7 @@ void CNpcGaryFriend::think( int _frames )
if ( m_started )
{
if ( m_soundId == NOT_PLAYING )
if ( canRender() && m_soundId == NOT_PLAYING )
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_GARY_DE_SNAIL, true );
}

View File

@ -125,7 +125,7 @@ void CNpcRisingWeightHazard::processMovement( int _frames )
}
else
{
if ( m_soundId == NOT_PLAYING )
if ( canRender() && m_soundId == NOT_PLAYING )
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true );
}
@ -141,7 +141,7 @@ void CNpcRisingWeightHazard::processMovement( int _frames )
}
else
{
if ( m_soundId == NOT_PLAYING )
if ( canRender() && m_soundId == NOT_PLAYING )
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true );
}