diff --git a/source/player/psfall.cpp b/source/player/psfall.cpp index 829e81cbc..a4b4b5f2a 100644 --- a/source/player/psfall.cpp +++ b/source/player/psfall.cpp @@ -74,7 +74,6 @@ void CPlayerStateFall::enter(CPlayerModeBase *_playerMode) _playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP); } } - m_buttBounceTimer=0; } @@ -110,21 +109,9 @@ void CPlayerStateFall::think(CPlayerModeBase *_playerMode) } _playerMode->fall(); - // Double-tap for butt bounce - if(m_buttBounceTimer) - { - m_buttBounceTimer--; - } if(controlDown&PI_JUMP) { - if(m_buttBounceTimer==0) - { - m_buttBounceTimer=BUTT_BOUNCE_TIMEOUT; - } - else - { - _playerMode->setState(STATE_BUTTBOUNCE); - } + _playerMode->setState(STATE_BUTTBOUNCE); } } diff --git a/source/player/psfall.h b/source/player/psfall.h index bb281b2aa..c079450e3 100644 --- a/source/player/psfall.h +++ b/source/player/psfall.h @@ -38,14 +38,6 @@ public: void enter(class CPlayerModeBase *_playerMode); void think(class CPlayerModeBase *_playerMode); -private: - enum - { - BUTT_BOUNCE_TIMEOUT=45, - }; - - unsigned int m_buttBounceTimer; - };