summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-02-24 03:01:49 +0200
committerJared Adams <jaxad0127@gmail.com>2010-02-24 15:52:37 -0700
commit7d1e019808dced37434af7c7c14ed5569e87f50e (patch)
treea6f670f007301a28e0a8a89ae3057fbdd0e89e8e /src/game.cpp
parentd039422e70e47a762ef61de619e9e98780b12664 (diff)
downloadmana-7d1e019808dced37434af7c7c14ed5569e87f50e.tar.gz
mana-7d1e019808dced37434af7c7c14ed5569e87f50e.tar.bz2
mana-7d1e019808dced37434af7c7c14ed5569e87f50e.tar.xz
mana-7d1e019808dced37434af7c7c14ed5569e87f50e.zip
Fix talk request flood.
Fix talk request flood from keyboard. Fix duplicate lines in NPC dialogs. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
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 7ebf6f8e..b3670641 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -865,7 +865,8 @@ void Game::handleInput()
}
// Talk to the nearest NPC if 't' pressed
- if ( keyboard.isKeyActive(keyboard.KEY_TALK) )
+ if (event.type == SDL_KEYDOWN &&
+ keyboard.getKeyIndex(event.key.keysym.sym) == KeyboardConfig::KEY_TALK)
{
Being *target = player_node->getTarget();