Skip to content

Commit

Permalink
CGE: Fix bug 3537530 - ALTering dice
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jun 24, 2012
1 parent 150011b commit c7fd284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/cge/events.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit c7fd284

Please sign in to comment.