From: Côme Chilliet Date: Wed, 30 Nov 2016 17:06:12 +0000 (+0700) Subject: Removed weird test for dialogues. Only attackkey should be used. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=211943fca2a77110d07c4eab259ed0208462766e;p=lugaru.git Removed weird test for dialogues. Only attackkey should be used. --- 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) {