This commit is contained in:
Paul 2001-07-16 16:27:50 +00:00
parent ed08839edd
commit 599c18dc1c
3 changed files with 13 additions and 6 deletions

View file

@ -69,12 +69,16 @@ CPlayerStateJump s_stateJump;
---------------------------------------------------------------------- */
void CPlayerStateJump::enter(CPlayerModeBase *_playerMode)
{
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
m_jumpFrames=0;
// If already in this state then don't do the entry code
if(_playerMode->getState()!=STATE_JUMP)
{
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
m_jumpFrames=0;
_playerMode->jump();
_playerMode->jump();
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_JUMP);
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_JUMP);
}
}