Fix bug #2011470: "DRASCULA: slowdown when you hold mouse buttons"

svn-id: r33576
This commit is contained in:
Eugene Sandulenko 2008-08-03 12:02:09 +00:00
parent c88c69f357
commit c49e7ab73f

View File

@ -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) {