aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukaslw2014-06-15 18:28:11 +0200
committerlukaslw2014-06-22 20:09:10 +0200
commitd9e2fc15d15dbc51f398c5044ba1f13edfbe9338 (patch)
tree84ab6c036b63552893c47a95966152b4bf0cbb90
parent7bc4599dadd0aad7e2bcc4e1d647f04555f377f7 (diff)
downloadscummvm-rg350-d9e2fc15d15dbc51f398c5044ba1f13edfbe9338.tar.gz
scummvm-rg350-d9e2fc15d15dbc51f398c5044ba1f13edfbe9338.tar.bz2
scummvm-rg350-d9e2fc15d15dbc51f398c5044ba1f13edfbe9338.zip
PRINCE: RMB - blocked while playing voice. Canceling voice with LMB
-rw-r--r--engines/prince/prince.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index 5cec882c71..9499764333 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -1603,6 +1603,11 @@ void PrinceEngine::rightMouseButton() {
}
void PrinceEngine::inventoryLeftMouseButton() {
+
+ _textSlots[0]._time = 0;
+ _textSlots[0]._str = nullptr;
+ stopSample(28);
+
if (_optionsFlag == 1) {
//check_opt
if (_selectedMob != 0) {
@@ -1702,7 +1707,9 @@ void PrinceEngine::inventoryLeftMouseButton() {
}
void PrinceEngine::inventoryRightMouseButton() {
- enableOptions();
+ if (_textSlots[0]._str == nullptr) {
+ enableOptions();
+ }
}
void PrinceEngine::enableOptions() {