From bcee44793fe1444bb08fa15e057ee254acae6bb4 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 29 Nov 2012 01:39:08 +0000 Subject: DREAMWEB: Simplify _lastHardKey usage and migrate to Common::KeyCode. This improves readability and should help with dealing with changes to fix bug #3590814 ("DREAMWEB: M key does not work in Network"). --- engines/dreamweb/stubs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/dreamweb/stubs.cpp') diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index f235f7c2fd..cf072fa790 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1056,7 +1056,7 @@ void DreamWebEngine::lockMon() { // key because calling readkey() drains characters from the input // buffer, we we want the user to be able to type ahead while the text // is being printed. - if (_lastHardKey == 57) { + if (_lastHardKey == Common::KEYCODE_SPACE) { // Clear the keyboard buffer. Otherwise the space that caused // the pause will be read immediately unpause the game. do { @@ -1072,7 +1072,7 @@ void DreamWebEngine::lockMon() { } // Forget the last "hard" key, otherwise the space that caused // the unpausing will immediately re-pause the game. - _lastHardKey = 0; + _lastHardKey = Common::KEYCODE_INVALID; lockLightOff(); } } -- cgit v1.2.3