aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorEugene Sandulenko2008-08-03 12:02:09 +0000
committerEugene Sandulenko2008-08-03 12:02:09 +0000
commitc49e7ab73ff6575419a9d781c94287e174c6f1c7 (patch)
treee4dbcd49d6ac3292a2a6a63f6c9dd9704a3863b4 /engines/drascula
parentc88c69f357fd886822e7cb9f5c98b59fb993df57 (diff)
downloadscummvm-rg350-c49e7ab73ff6575419a9d781c94287e174c6f1c7.tar.gz
scummvm-rg350-c49e7ab73ff6575419a9d781c94287e174c6f1c7.tar.bz2
scummvm-rg350-c49e7ab73ff6575419a9d781c94287e174c6f1c7.zip
Fix bug #2011470: "DRASCULA: slowdown when you hold mouse buttons"
svn-id: r33576
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/drascula.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index f25c24ed58..7c843892b6 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -457,13 +457,13 @@ bool DrasculaEngine::runCurrentChapter() {
playMusic(roomMusic);
}
+ delay(25);
updateEvents();
if (menuScreen == 0 && takeObject == 1)
checkObjects();
if (rightMouseButton == 1 && menuScreen == 1) {
- delay(100);
if (currentChapter == 2)
loadPic(menuBackground, backSurface);
else
@@ -473,7 +473,6 @@ bool DrasculaEngine::runCurrentChapter() {
updateEvents();
}
if (rightMouseButton == 1 && menuScreen == 0) {
- delay(100);
characterMoved = 0;
if (trackProtagonist == 2)
trackProtagonist = 1;
@@ -491,10 +490,8 @@ bool DrasculaEngine::runCurrentChapter() {
}
if (leftMouseButton == 1 && menuBar == 1) {
- delay(100);
selectVerbFromBar();
} else if (leftMouseButton == 1 && takeObject == 0) {
- delay(100);
if (verify1())
return true;
} else if (leftMouseButton == 1 && takeObject == 1) {