This commit is contained in:
parent
a6648b8d5e
commit
d0a56dd8f7
2 changed files with 1 additions and 22 deletions
|
@ -74,7 +74,6 @@ void CPlayerStateFall::enter(CPlayerModeBase *_playerMode)
|
||||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
|
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_buttBounceTimer=0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -110,21 +109,9 @@ void CPlayerStateFall::think(CPlayerModeBase *_playerMode)
|
||||||
}
|
}
|
||||||
_playerMode->fall();
|
_playerMode->fall();
|
||||||
|
|
||||||
// Double-tap for butt bounce
|
|
||||||
if(m_buttBounceTimer)
|
|
||||||
{
|
|
||||||
m_buttBounceTimer--;
|
|
||||||
}
|
|
||||||
if(controlDown&PI_JUMP)
|
if(controlDown&PI_JUMP)
|
||||||
{
|
{
|
||||||
if(m_buttBounceTimer==0)
|
_playerMode->setState(STATE_BUTTBOUNCE);
|
||||||
{
|
|
||||||
m_buttBounceTimer=BUTT_BOUNCE_TIMEOUT;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_playerMode->setState(STATE_BUTTBOUNCE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,14 +38,6 @@ public:
|
||||||
void enter(class CPlayerModeBase *_playerMode);
|
void enter(class CPlayerModeBase *_playerMode);
|
||||||
void think(class CPlayerModeBase *_playerMode);
|
void think(class CPlayerModeBase *_playerMode);
|
||||||
|
|
||||||
private:
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
BUTT_BOUNCE_TIMEOUT=45,
|
|
||||||
};
|
|
||||||
|
|
||||||
unsigned int m_buttBounceTimer;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue