aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/actor.cpp
diff options
context:
space:
mode:
authorThanasis Antoniou2018-07-02 10:45:17 +0300
committerEugene Sandulenko2018-12-25 12:35:52 +0100
commitf101906bc2d654c80ccadbf560261727759eea0c (patch)
treefc6832ffc32aca995d0a9ecee49d2bc1575b35bc /engines/bladerunner/actor.cpp
parenta86625700fe69ff27e0f704a41307cdd2135a6a8 (diff)
downloadscummvm-rg350-f101906bc2d654c80ccadbf560261727759eea0c.tar.gz
scummvm-rg350-f101906bc2d654c80ccadbf560261727759eea0c.tar.bz2
scummvm-rg350-f101906bc2d654c80ccadbf560261727759eea0c.zip
BLADERUNNER: Removed compile time macros, added synch with GUI
Diffstat (limited to 'engines/bladerunner/actor.cpp')
-rw-r--r--engines/bladerunner/actor.cpp22
1 files changed, 8 insertions, 14 deletions
diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp
index 062fc0f37c..974cfdc45c 100644
--- a/engines/bladerunner/actor.cpp
+++ b/engines/bladerunner/actor.cpp
@@ -41,9 +41,7 @@
#include "bladerunner/slice_animations.h"
#include "bladerunner/slice_renderer.h"
#include "bladerunner/time.h"
-#if SUBTITLES_SUPPORT
#include "bladerunner/subtitles.h"
-#endif // SUBTITLES_SUPPORT
#include "bladerunner/waypoints.h"
#include "bladerunner/zbuffer.h"
@@ -555,11 +553,11 @@ bool Actor::tick(bool forceDraw, Common::Rect *screenRect) {
needsUpdate = true;
timeLeft = 0;
}
-#if SUBTITLES_SUPPORT
- if(!isSpeeching()) {
- _vm->_subtitles->hide();
+
+ if (!isSpeeching()) {
+ _vm->_subtitles->hide();
}
-#endif // SUBTITLES_SUPPORT
+
if (needsUpdate) {
int newAnimation = 0, newFrame = 0;
_vm->_aiScripts->updateAnimation(_id, &newAnimation, &newFrame);
@@ -1099,18 +1097,14 @@ void Actor::speechPlay(int sentenceId, bool voiceOver) {
balance = CLIP<int>(balance, -127, 127);
}
-#if SUBTITLES_SUPPORT
- _vm->_subtitles->getInGameSubsText(_id, sentenceId);
- _vm->_subtitles->show();
-#endif // SUBTITLES_SUPPORT
-
+ _vm->_subtitles->getInGameSubsText(_id, sentenceId);
+ _vm->_subtitles->show();
+
_vm->_audioSpeech->playSpeech(name, balance);
}
void Actor::speechStop() {
-#if SUBTITLES_SUPPORT
- _vm->_subtitles->hide();
-#endif // SUBTITLES_SUPPORT
+ _vm->_subtitles->hide();
_vm->_audioSpeech->stopSpeech();
}