aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/event.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-21 23:43:14 +0000
committerFilippos Karapetis2010-11-21 23:43:14 +0000
commit0b06a1fe7b8295ab1c26c9a76ec2e5a3b2716638 (patch)
tree56672cd9f88e193d8eee6cd61cb248399c513e89 /engines/sci/event.cpp
parent44669ac54d849999c0c75c4f914bef4bd6d3a2d8 (diff)
downloadscummvm-rg350-0b06a1fe7b8295ab1c26c9a76ec2e5a3b2716638.tar.gz
scummvm-rg350-0b06a1fe7b8295ab1c26c9a76ec2e5a3b2716638.tar.bz2
scummvm-rg350-0b06a1fe7b8295ab1c26c9a76ec2e5a3b2716638.zip
SCI: Proper fix for the QFG2 character import screen crashes (bug #3037996)
Script 944 does constant reallocations whenever the selection changes, which leads to all sorts of unpredictable crashes. Thanks to waltervn for his help on this issue svn-id: r54413
Diffstat (limited to 'engines/sci/event.cpp')
-rw-r--r--engines/sci/event.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index 5d8f6a8a28..97c33d5e56 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -347,20 +347,6 @@ SciEvent EventManager::getScummVMEvent() {
}
}
- // WORKAROUND: In the QFG2 character screen, if the user right clicks and
- // then left clicks on something, an invalid reference is passed to kStrAt.
- // This is a script bug, as only left mouse clicks should be processed by
- // the game in that screen. Therefore, we work around it here by filtering
- // out all right and middle mouse button clicks. Fixes bug #3037996.
- if (g_sci->getGameId() == GID_QFG2 && g_sci->getEngineState()->currentRoomNumber() == 805) {
- if ((input.type == SCI_EVENT_MOUSE_PRESS || input.type == SCI_EVENT_MOUSE_RELEASE) && input.data > 1) {
- input.type = SCI_EVENT_NONE;
- input.character = 0;
- input.data = 0;
- input.modifiers = 0;
- }
- }
-
return input;
}