aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
authorD G Turner2012-11-29 01:39:08 +0000
committerD G Turner2012-11-29 01:39:08 +0000
commitbcee44793fe1444bb08fa15e057ee254acae6bb4 (patch)
tree16bc369d71bc92a44e5493d1921471873e4c1dd9 /engines/dreamweb/stubs.cpp
parent6d4b0a2c9f422d4c3fd51e7c68644c16ddd805d4 (diff)
downloadscummvm-rg350-bcee44793fe1444bb08fa15e057ee254acae6bb4.tar.gz
scummvm-rg350-bcee44793fe1444bb08fa15e057ee254acae6bb4.tar.bz2
scummvm-rg350-bcee44793fe1444bb08fa15e057ee254acae6bb4.zip
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").
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp4
1 files changed, 2 insertions, 2 deletions
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();
}
}