This commit is contained in:
Paul 2001-08-07 20:55:05 +00:00
parent c59255f3bb
commit 4e9fd0378d

View file

@ -69,9 +69,13 @@ CPlayerStateSpring s_stateSpring;
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
void CPlayerStateSpring::enter(CPlayerModeBase *_playerMode) void CPlayerStateSpring::enter(CPlayerModeBase *_playerMode)
{ {
// If already in this state then don't do the entry code
if(_playerMode->getState()!=STATE_SPRINGUP)
{
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP); _playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
m_springFrames=0; m_springFrames=0;
_playerMode->spring(); _playerMode->spring();
}
} }