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/people.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/dreamweb/people.cpp') diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp index dbb81406cd..53f04d482b 100644 --- a/engines/dreamweb/people.cpp +++ b/engines/dreamweb/people.cpp @@ -194,7 +194,7 @@ void DreamWebEngine::madman(ReelRoutine &routine) { if (newReelPointer == 66) { ++_vars._combatCount; - if (_lastHardKey == 1) // ESC pressed, skip the mad man's speech + if (_lastHardKey == Common::KEYCODE_ESCAPE) // ESC pressed, skip the mad man's speech _vars._combatCount = _speechCount = (hasSpeech() ? 65 : 63); madmanText(); -- cgit v1.2.3