From 7df722ac2899729174c1a88bec96f658237023bf Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Mon, 1 Oct 2007 06:48:24 +0000 Subject: Fixed attacking with keyboard. --- src/game.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game.cpp') 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()) -- cgit v1.2.3-70-g09d2