This commit is contained in:
Charles 2001-07-12 16:53:21 +00:00
parent 8b28dcc764
commit c0595dc15b
4 changed files with 13 additions and 5 deletions

View File

@ -115,6 +115,11 @@ void CNpcBouncingRockHazard::processMovement( int _frames )
// deal with horizontal
if ( m_soundId == NOT_PLAYING )
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_ROLLING_ROCK, true );
}
bool pathComplete;
if ( m_npcPath.thinkFlat( Pos, &pathComplete, &waypointXDist, &waypointYDist, &waypointHeading, 1 ) )

View File

@ -61,6 +61,11 @@ void CNpcFlyTrapHazard::processMovement( int _frames )
m_shut = false;
m_contact = false;
m_timer = GameState::getOneSecondInFrames();
if ( m_soundId == NOT_PLAYING )
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_CLAM_ATTACK, true );
}
}
}
else

View File

@ -64,12 +64,9 @@ void CNpcRollingRockHazard::processMovement( int _frames )
}
else
{
if ( !m_jump )
if ( m_soundId == NOT_PLAYING )
{
if ( m_soundId == NOT_PLAYING )
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_ROLLING_ROCK, true );
}
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_ROLLING_ROCK, true );
}
if ( distX )

View File

@ -344,6 +344,7 @@ void CNpcCartPlatform::jump()
{
m_inJump = true;
m_vertSpeed = -8 << 8;
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_JUMP);
}
}