aboutsummaryrefslogtreecommitdiff
path: root/engines/cge
diff options
context:
space:
mode:
authorStrangerke2012-06-25 00:44:59 +0200
committerStrangerke2012-06-25 00:44:59 +0200
commitc7fd284e4a96686b3dde288c047db8b68a96a408 (patch)
tree5da727cc129ea4808319de876ed02aeaf3c6d107 /engines/cge
parent150011b843e865d99322417e45ba53d6a64ff34b (diff)
downloadscummvm-rg350-c7fd284e4a96686b3dde288c047db8b68a96a408.tar.gz
scummvm-rg350-c7fd284e4a96686b3dde288c047db8b68a96a408.tar.bz2
scummvm-rg350-c7fd284e4a96686b3dde288c047db8b68a96a408.zip
CGE: Fix bug 3537530 - ALTering dice
Diffstat (limited to 'engines/cge')
-rw-r--r--engines/cge/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp
index 095aac2412..c8baf4ed61 100644
--- a/engines/cge/events.cpp
+++ b/engines/cge/events.cpp
@@ -55,7 +55,7 @@ Sprite *Keyboard::setClient(Sprite *spr) {
bool Keyboard::getKey(Common::Event &event) {
Common::KeyCode keycode = event.kbd.keycode;
- if ((keycode == Common::KEYCODE_LALT) || (keycode == Common::KEYCODE_RALT))
+ if (((keycode == Common::KEYCODE_LALT) || (keycode == Common::KEYCODE_RALT)) && event.type == Common::EVENT_KEYDOWN)
_keyAlt = true;
else
_keyAlt = false;