aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script/script.cpp
diff options
context:
space:
mode:
authorThanasis Antoniou2019-04-04 21:01:25 +0300
committerThanasis Antoniou2019-04-04 21:03:10 +0300
commitf04705084c6745b67766f33eac25cc73b4d3f524 (patch)
treef54608dbc31fff10871fa0ded267104a61f16893 /engines/bladerunner/script/script.cpp
parente4b78f4f621a7d73c08099c3b7674f3966cf8da4 (diff)
downloadscummvm-rg350-f04705084c6745b67766f33eac25cc73b4d3f524.tar.gz
scummvm-rg350-f04705084c6745b67766f33eac25cc73b4d3f524.tar.bz2
scummvm-rg350-f04705084c6745b67766f33eac25cc73b4d3f524.zip
BLADERUNNER: Support wait for dialogue queues to finish
Fixes a Crazylegs bug where he can interrupt himself Could probably be used elsewhere if there are any other such cases.
Diffstat (limited to 'engines/bladerunner/script/script.cpp')
-rw-r--r--engines/bladerunner/script/script.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/bladerunner/script/script.cpp b/engines/bladerunner/script/script.cpp
index 15b6067030..9242b294c4 100644
--- a/engines/bladerunner/script/script.cpp
+++ b/engines/bladerunner/script/script.cpp
@@ -1551,6 +1551,11 @@ void ScriptBase::ADQ_Add_Pause(int delay) {
_vm->_actorDialogueQueue->addPause(delay);
}
+void ScriptBase::ADQ_Wait_For_All_Queued_Dialogue() {
+ debugC(kDebugScript, "ADQ_Wait_For_All_Queued_Dialogue()");
+ _vm->loopQueuedDialogueStillPlaying();
+}
+
bool ScriptBase::Game_Over() {
debugC(kDebugScript, "Game_Over()");
_vm->_gameIsRunning = false;