From f101906bc2d654c80ccadbf560261727759eea0c Mon Sep 17 00:00:00 2001 From: Thanasis Antoniou Date: Mon, 2 Jul 2018 10:45:17 +0300 Subject: BLADERUNNER: Removed compile time macros, added synch with GUI --- engines/bladerunner/actor.cpp | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'engines/bladerunner/actor.cpp') 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(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(); } -- cgit v1.2.3