diff options
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7c82a38..c965cd3 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
@@ -511,9 +511,7 @@ bool Game::processKeys(const Input& keystate) | |||
511 | if (keystate.up) | 511 | if (keystate.up) |
512 | { | 512 | { |
513 | py--; | 513 | py--; |
514 | } | 514 | } else if (keystate.down) |
515 | |||
516 | if (keystate.down) | ||
517 | { | 515 | { |
518 | py++; | 516 | py++; |
519 | dir = Direction::down; | 517 | dir = Direction::down; |
@@ -523,9 +521,7 @@ bool Game::processKeys(const Input& keystate) | |||
523 | { | 521 | { |
524 | px--; | 522 | px--; |
525 | dir = Direction::left; | 523 | dir = Direction::left; |
526 | } | 524 | } else if (keystate.right) |
527 | |||
528 | if (keystate.right) | ||
529 | { | 525 | { |
530 | px++; | 526 | px++; |
531 | dir = Direction::right; | 527 | dir = Direction::right; |