This commit is contained in:
Paul 2001-04-03 23:11:21 +00:00
parent 8010a38b67
commit 1075b09fb0

View File

@ -98,6 +98,7 @@ void CPlayerStateRun::enter(CPlayerModeBase *_playerMode)
Params:
Returns:
---------------------------------------------------------------------- */
int fix=32;
void CPlayerStateRun::think(CPlayerModeBase *_playerMode)
{
int controlDown,controlHeld;
@ -143,7 +144,8 @@ void CPlayerStateRun::think(CPlayerModeBase *_playerMode)
}
}
if(_playerMode->advanceAnimFrameAndCheckForEndOfAnim())
if(_playerMode->advanceAnimFrameAndCheckForEndOfAnim()||
(_playerMode->getAnimNo()==ANIM_SPONGEBOB_RUN&&_playerMode->getAnimFrame()>=fix))
{
_playerMode->setAnimNo(getLoopFrame());
m_numberOfTimesAnimHasLooped++;