diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-02-24 03:01:49 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-24 15:52:37 -0700 |
commit | 7d1e019808dced37434af7c7c14ed5569e87f50e (patch) | |
tree | a6f670f007301a28e0a8a89ae3057fbdd0e89e8e /src/game.cpp | |
parent | d039422e70e47a762ef61de619e9e98780b12664 (diff) | |
download | mana-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.cpp | 3 |
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(); |