From 03c15cd2ca4587d8bb275df738a9841081cb12f3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Dec 2011 17:52:33 +0300 Subject: Fix talk to npc key delay. --- src/game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index 683ba418b..2937d6bb7 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1507,8 +1507,7 @@ void Game::handleMoveAndAttack(SDL_Event &event, bool wasDown) } // Talk to the nearest NPC if 't' pressed - if (event.type == SDL_KEYDOWN && - keyboard.getKeyIndex(event.key.keysym.sym) + if (wasDown && keyboard.getKeyIndex(event.key.keysym.sym) == KeyboardConfig::KEY_TALK && !keyboard.isKeyActive(keyboard.KEY_EMOTE)) { -- cgit v1.2.3-60-g2f50