oops
This commit is contained in:
parent
c7f0edd513
commit
ccdb001b9d
@ -7,7 +7,7 @@ void Game::manageOnePlayer(unsigned id){
|
||||
else players[id].x -= confData.playersSpeed;
|
||||
}
|
||||
if (ISPRESSED(id, right)){
|
||||
if(players[id].x + confData.playersSpeed >= pm.getScreenWidth()) players[id].x = pm.getScreenWidth() - 1;
|
||||
if(players[id].x + confData.playersWidth + confData.playersSpeed >= pm.getScreenWidth()) players[id].x = pm.getScreenWidth() - confData.playersWidth - 1;
|
||||
else players[id].x += confData.playersSpeed;
|
||||
}
|
||||
if(players[id].fireCooldown==0) {
|
||||
|
Loading…
Reference in New Issue
Block a user