summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/game.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cbc0ba93..d1d9530e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* src/item.cpp, src/gui/itemcontainer.cpp, src/resources/itemdb.cpp:
Fixed inventory display so that empty slots are not unknown items.
Adjusted "type" meaning to tmwserv one.
+ * src/game.cpp: Fixed attacking with keyboard.
2007-09-25 Björn Steinbrink <B.Steinbrink@gmx.de>
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())