summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-21 19:29:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-21 19:29:00 +0300
commit24fcf548c2d570d1b23bf799159b64f170f738bd (patch)
tree8edc089f957791d394b0f65cdb6c079b9d2963c1 /src/game.cpp
parentb84d24167a06f5ab15394045600bb79834f3953a (diff)
downloadmv-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.gz
mv-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.bz2
mv-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.xz
mv-24fcf548c2d570d1b23bf799159b64f170f738bd.zip
Fix code style and other small issues.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index f3d57df9e..dbae184c6 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -935,7 +935,8 @@ void Game::handleInput()
BLOCK_START("Game::handleInput 2")
if (mLogInput)
Client::logEvent(event);
- updateHistory(event);
+ if (event.type == SDL_KEYDOWN || event.type == SDL_KEYUP)
+ updateHistory(event);
checkKeys();
if (inputManager.handleEvent(event))