diff options
author | Thanasis Antoniou | 2019-04-04 21:01:25 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-04-04 21:03:10 +0300 |
commit | f04705084c6745b67766f33eac25cc73b4d3f524 (patch) | |
tree | f54608dbc31fff10871fa0ded267104a61f16893 /engines/bladerunner/script/script.cpp | |
parent | e4b78f4f621a7d73c08099c3b7674f3966cf8da4 (diff) | |
download | scummvm-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.cpp | 5 |
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; |