This commit is contained in:
Charles 2001-08-13 16:31:14 +00:00
parent 232f8d7f71
commit 1f98a0beab
5 changed files with 21 additions and 0 deletions

View file

@ -126,10 +126,16 @@ void CPlayerStateRun::think(CPlayerModeBase *_playerMode)
if(controlHeld&PI_LEFT)
{
CPlayer *player = _playerMode->getPlayer();
player->setMoveLeftRight( player->getMoveLeftRight() - 1 );
_playerMode->moveLeft();
}
else if(controlHeld&PI_RIGHT)
{
CPlayer *player = _playerMode->getPlayer();
player->setMoveLeftRight( player->getMoveLeftRight() + 1 );
_playerMode->moveRight();
}
else