This commit is contained in:
parent
c59255f3bb
commit
4e9fd0378d
1 changed files with 7 additions and 3 deletions
|
@ -69,9 +69,13 @@ CPlayerStateSpring s_stateSpring;
|
|||
---------------------------------------------------------------------- */
|
||||
void CPlayerStateSpring::enter(CPlayerModeBase *_playerMode)
|
||||
{
|
||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
|
||||
m_springFrames=0;
|
||||
_playerMode->spring();
|
||||
// If already in this state then don't do the entry code
|
||||
if(_playerMode->getState()!=STATE_SPRINGUP)
|
||||
{
|
||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
|
||||
m_springFrames=0;
|
||||
_playerMode->spring();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue