}
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;