From 7b155f111daf5d7ae477b16d0f0789b1113bea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jun 2012 00:04:33 +0300 Subject: Fix some issues after auto checking. --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 4ed04a20f..f67fac098 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1027,10 +1027,10 @@ void Game::updateHistory(SDL_Event &event) if (!player_node || !player_node->getAttackType()) return; - bool old = false; - if (event.key.keysym.sym != -1) { + bool old = false; + int key = keyboard.getKeyIndex(event); int time = cur_time; int idx = -1; -- cgit v1.2.3-60-g2f50