summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-20 00:58:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-20 01:24:45 +0300
commit91023f53ac00c4fafbf154d0960357e2b131a802 (patch)
treea066fadd2c40e76fe970178fe932cb1189c36b42 /src/game.cpp
parentfc0bffc8aa066409c4538907fe96f389712e24ff (diff)
downloadmv-91023f53ac00c4fafbf154d0960357e2b131a802.tar.gz
mv-91023f53ac00c4fafbf154d0960357e2b131a802.tar.bz2
mv-91023f53ac00c4fafbf154d0960357e2b131a802.tar.xz
mv-91023f53ac00c4fafbf154d0960357e2b131a802.zip
add option for input logging.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 57b855a18..32201a85b 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -376,7 +376,8 @@ Game::Game():
mAdjustLevel(0),
mAdjustPerfomance(config.getBoolValue("adjustPerfomance")),
mLowerCounter(0),
- mPing(0)
+ mPing(0),
+ mLogInput(config.getBoolValue("logInput"))
{
touchManager.setInGame(true);
spellManager = new SpellManager;
@@ -932,6 +933,8 @@ void Game::handleInput()
while (SDL_PollEvent(&event))
{
BLOCK_START("Game::handleInput 2")
+ if (mLogInput)
+ Client::logEvent(event);
updateHistory(event);
checkKeys();