This commit is contained in:
parent
232f8d7f71
commit
1f98a0beab
5 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue