aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/dialogs_yesno.cpp8
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;
}