aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorThierry Crozat2016-04-17 23:41:32 +0100
committerThierry Crozat2016-04-17 23:41:32 +0100
commit6393315a8ee9d22983dd00efbcf97fe7221a5817 (patch)
tree5e134aeea56e9d92003cc4657970d5acbc8d8899 /engines/drascula
parentd05d4263e54ffcd56a2782c58d268cb766212d68 (diff)
downloadscummvm-rg350-6393315a8ee9d22983dd00efbcf97fe7221a5817.tar.gz
scummvm-rg350-6393315a8ee9d22983dd00efbcf97fe7221a5817.tar.bz2
scummvm-rg350-6393315a8ee9d22983dd00efbcf97fe7221a5817.zip
DRASCULA: Remove delays when showing and hiding the inventory
I don't see any purpose to this delays and they were not present in the original engine. It works fine without those and the interface seems more responsive. This fixes bug #7121 DRASCULA: Delay and freeze when pressing right mouse click on game Also move a delay when left clicking to after performing the action. With the delay between the left click and the action, the mouse position could have moved when performing the action, resulting in the wrong action being performed (e.g. activating the wrong verb or picking the wrong object in the inventory). But removing the delay altogether causes flickering when picking objects from the inventory.
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/drascula.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index de7027de9e..ab91056480 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -595,7 +595,6 @@ bool DrasculaEngine::runCurrentChapter() {
if (_rightMouseButton == 1 && _menuScreen) {
#endif
_rightMouseButton = 0;
- delay(100);
if (currentChapter == 2) {
loadPic(menuBackground, cursorSurface);
loadPic(menuBackground, backSurface);
@@ -624,7 +623,6 @@ bool DrasculaEngine::runCurrentChapter() {
!(currentChapter == 5 && pickedObject == 16)) {
#endif
_rightMouseButton = 0;
- delay(100);
characterMoved = 0;
if (trackProtagonist == 2)
trackProtagonist = 1;
@@ -654,9 +652,9 @@ bool DrasculaEngine::runCurrentChapter() {
if (_leftMouseButton == 1 && _menuBar) {
selectVerbFromBar();
} else if (_leftMouseButton == 1 && takeObject == 0) {
- delay(100);
if (verify1())
return true;
+ delay(100);
} else if (_leftMouseButton == 1 && takeObject == 1) {
if (verify2())
return true;