summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-27 09:03:13 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-27 09:03:13 +0000
commitee15a808a1e0d36167f80d9f96147103ba5583de (patch)
tree0756c69cfb8c8d09b0abc29aa302aeea81a59af5 /src/game.cpp
parent4d546730d97828bfed5586c1d50527c7ff5e5c79 (diff)
downloadmana-ee15a808a1e0d36167f80d9f96147103ba5583de.tar.gz
mana-ee15a808a1e0d36167f80d9f96147103ba5583de.tar.bz2
mana-ee15a808a1e0d36167f80d9f96147103ba5583de.tar.xz
mana-ee15a808a1e0d36167f80d9f96147103ba5583de.zip
Made it compile with GCC 4.3
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 53874f4d..b4887f5b 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -684,24 +684,24 @@ void Game::handleInput()
unsigned char direction = 0;
// Translate pressed keys to movement and direction
- if ( keyboard.isKeyActive(keyboard.KEY_MOVE_UP) ||
- joystick && joystick->isUp())
+ if (keyboard.isKeyActive(keyboard.KEY_MOVE_UP) ||
+ (joystick && joystick->isUp()))
{
direction |= Being::UP;
}
- else if ( keyboard.isKeyActive(keyboard.KEY_MOVE_DOWN) ||
- joystick && joystick->isDown())
+ else if (keyboard.isKeyActive(keyboard.KEY_MOVE_DOWN) ||
+ (joystick && joystick->isDown()))
{
direction |= Being::DOWN;
}
- if ( keyboard.isKeyActive(keyboard.KEY_MOVE_LEFT) ||
- joystick && joystick->isLeft())
+ if (keyboard.isKeyActive(keyboard.KEY_MOVE_LEFT) ||
+ (joystick && joystick->isLeft()))
{
direction |= Being::LEFT;
}
- else if ( keyboard.isKeyActive(keyboard.KEY_MOVE_RIGHT) ||
- joystick && joystick->isRight())
+ else if (keyboard.isKeyActive(keyboard.KEY_MOVE_RIGHT) ||
+ (joystick && joystick->isRight()))
{
direction |= Being::RIGHT;
}