mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Fix bug #2011470: "DRASCULA: slowdown when you hold mouse buttons"
svn-id: r33576
This commit is contained in:
parent
c88c69f357
commit
c49e7ab73f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user