Skip to content

Commit

Permalink
PRINCE: RMB - blocked while playing voice. Canceling voice with LMB
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jun 22, 2014
1 parent 7bc4599 commit d9e2fc1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engines/prince/prince.cpp
Expand Up @@ -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) {
Expand Down Expand Up @@ -1702,7 +1707,9 @@ void PrinceEngine::inventoryLeftMouseButton() {
}

void PrinceEngine::inventoryRightMouseButton() {
enableOptions();
if (_textSlots[0]._str == nullptr) {
enableOptions();
}
}

void PrinceEngine::enableOptions() {
Expand Down

0 comments on commit d9e2fc1

Please sign in to comment.