From ec71b9bfd6d557888ccb63cb0b58291929169267 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 5 Mar 2012 22:07:17 +1100 Subject: MORTEVIELLE: Bugfix to ignore previous mouse click when waiting in tkey1 --- engines/mortevielle/mor2.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines') 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(); -- cgit v1.2.3