This commit is contained in:
parent
c8705cf823
commit
a30985f2c0
2 changed files with 3 additions and 3 deletions
|
@ -234,7 +234,7 @@ void CNpcGaryFriend::think( int _frames )
|
||||||
|
|
||||||
if ( m_started )
|
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 );
|
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_GARY_DE_SNAIL, true );
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ void CNpcRisingWeightHazard::processMovement( int _frames )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( m_soundId == NOT_PLAYING )
|
if ( canRender() && m_soundId == NOT_PLAYING )
|
||||||
{
|
{
|
||||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true );
|
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true );
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ void CNpcRisingWeightHazard::processMovement( int _frames )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( m_soundId == NOT_PLAYING )
|
if ( canRender() && m_soundId == NOT_PLAYING )
|
||||||
{
|
{
|
||||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true );
|
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue