From 211943fca2a77110d07c4eab259ed0208462766e Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Thu, 1 Dec 2016 00:06:12 +0700 Subject: [PATCH] Removed weird test for dialogues. Only attackkey should be used. --- Source/GameTick.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index c688a5f..4f238e2 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -5749,18 +5749,7 @@ void Game::Tick() yaw = Dialog::currentBox().camerayaw; pitch = Dialog::currentBox().camerapitch; if (Dialog::dialoguetime > 0.5) { - if ( Input::isKeyPressed(SDL_SCANCODE_1) || - Input::isKeyPressed(SDL_SCANCODE_2) || - Input::isKeyPressed(SDL_SCANCODE_3) || - Input::isKeyPressed(SDL_SCANCODE_4) || - Input::isKeyPressed(SDL_SCANCODE_5) || - Input::isKeyPressed(SDL_SCANCODE_6) || - Input::isKeyPressed(SDL_SCANCODE_7) || - Input::isKeyPressed(SDL_SCANCODE_8) || - Input::isKeyPressed(SDL_SCANCODE_9) || - Input::isKeyPressed(SDL_SCANCODE_0) || - Input::isKeyPressed(SDL_SCANCODE_MINUS) || - Input::isKeyPressed(attackkey)) { + if (Input::isKeyPressed(attackkey)) { Dialog::indialogue++; if (Dialog::indialogue < Dialog::currentDialog().boxes.size()) { if (Dialog::currentBox().sound != 0) { -- 2.39.2