]> git.jsancho.org Git - lugaru.git/commitdiff
Removed weird test for dialogues. Only attackkey should be used.
authorCôme Chilliet <come@chilliet.eu>
Wed, 30 Nov 2016 17:06:12 +0000 (00:06 +0700)
committerCôme Chilliet <come@chilliet.eu>
Wed, 30 Nov 2016 17:06:12 +0000 (00:06 +0700)
Source/GameTick.cpp

index c688a5f28a019055ec75cebf56e4899d6f36d1dc..4f238e2bf243720e08a4706d1c9fc48f99e890ac 100644 (file)
@@ -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) {