diff options
author | Paul Gilbert | 2015-01-25 11:18:00 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-25 11:18:00 -0500 |
commit | ef283252b36b361e3775d07e8f9fe887af1ab9ba (patch) | |
tree | a319e8027d7ba32702f7e29b97700b52d7cdfaf1 /engines/xeen | |
parent | 7b387dbd89c303c73dd2763a5c05ff0d9d64e4b4 (diff) | |
download | scummvm-rg350-ef283252b36b361e3775d07e8f9fe887af1ab9ba.tar.gz scummvm-rg350-ef283252b36b361e3775d07e8f9fe887af1ab9ba.tar.bz2 scummvm-rg350-ef283252b36b361e3775d07e8f9fe887af1ab9ba.zip |
XEEN: Fix keyboard keys in YesNo dialog
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/dialogs_yesno.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/xeen/dialogs_yesno.cpp b/engines/xeen/dialogs_yesno.cpp index 6f74d86ca4..940f5b6e08 100644 --- a/engines/xeen/dialogs_yesno.cpp +++ b/engines/xeen/dialogs_yesno.cpp @@ -53,8 +53,8 @@ bool YesNo::execute(bool type, int v2) { confirmSprites.draw(screen, 2, Common::Point(260, 75)); screen._windows[34].update(); - addButton(Common::Rect(235, 75, 259, 95), 'Y', &confirmSprites); - addButton(Common::Rect(260, 75, 284, 95), 'N', &confirmSprites); + addButton(Common::Rect(235, 75, 259, 95), Common::KEYCODE_y, &confirmSprites); + addButton(Common::Rect(260, 75, 284, 95), Common::KEYCODE_n, &confirmSprites); intf._face1State = map._headData[party._mazePosition.y][party._mazePosition.x]._left; intf._face2State = map._headData[party._mazePosition.y][party._mazePosition.x]._right; @@ -76,10 +76,10 @@ bool YesNo::execute(bool type, int v2) { if (!_buttonValue) continue; - if (type || _buttonValue == 'Y') { + if (type || _buttonValue == Common::KEYCODE_y) { result = true; break; - } else if (_buttonValue == 'N' || _buttonValue == Common::KEYCODE_ESCAPE) + } else if (_buttonValue == Common::KEYCODE_n || _buttonValue == Common::KEYCODE_ESCAPE) break; } |