]> git.jsancho.org Git - lugaru.git/commitdiff
Merge branch 'master' of gitlab.com:osslugaru/lugaru
authorCôme Chilliet <come@chilliet.eu>
Thu, 1 Dec 2016 04:08:07 +0000 (11:08 +0700)
committerCôme Chilliet <come@chilliet.eu>
Thu, 1 Dec 2016 04:08:07 +0000 (11:08 +0700)
1  2 
Source/GameTick.cpp

index 4f238e2bf243720e08a4706d1c9fc48f99e890ac,e5c89d97349e517e749ae8ad1f76e4a08f0c6fc7..19d043df2a54fadbf640bfba47d68b22dd13994b
@@@ -5744,17 -5744,28 +5744,17 @@@ void Game::Tick(
                  }
                  if (!Dialog::directing) {
                      pause_sound(whooshsound);
-                     viewer = Dialog::currentBox().camera;
+                     viewer = Dialog::currentScene().camera;
                      viewer.y = max((double)viewer.y, terrain.getHeight(viewer.x, viewer.z) + .1);
-                     yaw = Dialog::currentBox().camerayaw;
-                     pitch = Dialog::currentBox().camerapitch;
+                     yaw = Dialog::currentScene().camerayaw;
+                     pitch = Dialog::currentScene().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) {
-                                     playdialogueboxsound();
-                                     if (Dialog::currentBox().sound == -5) {
+                             if (Dialog::indialogue < Dialog::currentDialog().scenes.size()) {
+                                 if (Dialog::currentScene().sound != 0) {
+                                     playdialoguescenesound();
+                                     if (Dialog::currentScene().sound == -5) {
                                          hotspot[numhotspots] = Person::players[0]->coords;
                                          hotspotsize[numhotspots] = 10;
                                          hotspottype[numhotspots] = -1;