This commit is contained in:
parent
c59255f3bb
commit
4e9fd0378d
1 changed files with 7 additions and 3 deletions
|
@ -68,11 +68,15 @@ CPlayerStateSpring s_stateSpring;
|
||||||
Returns:
|
Returns:
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue