diff options
author | Thanasis Antoniou | 2019-05-09 11:11:05 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-05-09 11:51:35 +0300 |
commit | 1b4a5201405f1e8a0c0e8e716ebf5565dca3d7a6 (patch) | |
tree | 30de62ee915bf526a5e3884e9f454a2a59066697 | |
parent | 276f6e0bfd5a40ab6e06a5af03f5ab53b78b3f9c (diff) | |
download | scummvm-rg350-1b4a5201405f1e8a0c0e8e716ebf5565dca3d7a6.tar.gz scummvm-rg350-1b4a5201405f1e8a0c0e8e716ebf5565dca3d7a6.tar.bz2 scummvm-rg350-1b4a5201405f1e8a0c0e8e716ebf5565dca3d7a6.zip |
BLADERUNNER: Fix disabled mouse hover GPS speech
-rw-r--r-- | engines/bladerunner/ui/spinner.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/bladerunner/ui/spinner.cpp b/engines/bladerunner/ui/spinner.cpp index d47a28c63a..bb4f67b05b 100644 --- a/engines/bladerunner/ui/spinner.cpp +++ b/engines/bladerunner/ui/spinner.cpp @@ -431,9 +431,13 @@ void Spinner::tickDescription() { return; } - _vm->_actors[_actorId]->speechPlay(_sentenceId, false); - _actorId = -1; - _sentenceId = -1; + if (!_vm->_mouse->isDisabled()) { + // mouse can mouse when disab;ed so hover callbacks will work, while the cursor is invisible + // so postpone the speech until mouse is invisible again + _vm->_actors[_actorId]->speechPlay(_sentenceId, false); + _actorId = -1; + _sentenceId = -1; + } } void Spinner::playSpeechLine(int actorId, int sentenceId, float duration) { |