This commit is contained in:
parent
948f32ea2e
commit
e399f8ad11
8 changed files with 52 additions and 4 deletions
|
@ -141,10 +141,9 @@ bool CNpcSquidDartEnemy::processSensor()
|
|||
if( m_soundId != NOT_PLAYING )
|
||||
{
|
||||
CSoundMediator::stopAndUnlockSfx( (xmPlayingId) m_soundId );
|
||||
m_soundId = NOT_PLAYING;
|
||||
}
|
||||
|
||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_SQUIDDART_ATTACK, true );
|
||||
|
||||
return( true );
|
||||
}
|
||||
else
|
||||
|
@ -179,6 +178,11 @@ void CNpcSquidDartEnemy::processClose( int _frames )
|
|||
}
|
||||
|
||||
Pos.vx += movement;
|
||||
|
||||
if( m_soundId != NOT_PLAYING )
|
||||
{
|
||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_SQUIDDART_ATTACK, true );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue