summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-01 06:48:24 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-01 06:48:24 +0000
commit7df722ac2899729174c1a88bec96f658237023bf (patch)
tree886e282ee553bd9876ae5133f0ccae139cb146cf /src/game.cpp
parent3b79ce4edf01b19a9ca0d1cb75ce38da8384b41d (diff)
downloadMana-7df722ac2899729174c1a88bec96f658237023bf.tar.gz
Mana-7df722ac2899729174c1a88bec96f658237023bf.tar.bz2
Mana-7df722ac2899729174c1a88bec96f658237023bf.tar.xz
Mana-7df722ac2899729174c1a88bec96f658237023bf.zip
Fixed attacking with keyboard.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 3e2a9deb..176d9642 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -550,11 +550,18 @@ void Game::handleInput()
used = true;
}
break;
+
+ case KeyboardConfig::KEY_ATTACK:
+ player_node->attack();
+ used = true;
+ break;
+
case KeyboardConfig::KEY_SIT:
// Player sit action
player_node->toggleSit();
used = true;
break;
+
case KeyboardConfig::KEY_HIDE_WINDOWS:
// Hide certain windows
if (!chatWindow->isFocused())