aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-03-05 22:07:17 +1100
committerStrangerke2012-04-06 08:22:45 +0200
commitec71b9bfd6d557888ccb63cb0b58291929169267 (patch)
tree58ec302e69462f908a2d1d473cdccb134179a9f6 /engines
parent83c32aeb2ab4b91a42d5be08dbbd48e78d69b148 (diff)
downloadscummvm-rg350-ec71b9bfd6d557888ccb63cb0b58291929169267.tar.gz
scummvm-rg350-ec71b9bfd6d557888ccb63cb0b58291929169267.tar.bz2
scummvm-rg350-ec71b9bfd6d557888ccb63cb0b58291929169267.zip
MORTEVIELLE: Bugfix to ignore previous mouse click when waiting in tkey1
Diffstat (limited to 'engines')
-rw-r--r--engines/mortevielle/mor2.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/mortevielle/mor2.cpp b/engines/mortevielle/mor2.cpp
index 25793c817f..c98b399114 100644
--- a/engines/mortevielle/mor2.cpp
+++ b/engines/mortevielle/mor2.cpp
@@ -220,9 +220,16 @@ void tkey1(bool d) {
hideMouse();
fenat('K');
+
+ // Wait for release from any key or mouse button
while (keypressed())
g_key = testou();
-
+ do {
+ getMousePos(x, y, c);
+ keypressed();
+ } while (c != 0);
+
+ // Event loop
do {
if (d)
tinke();