Skip to content

Commit

Permalink
XEEN: Fix keyboard keys in YesNo dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 25, 2015
1 parent 7b387db commit ef28325
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engines/xeen/dialogs_yesno.cpp
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit ef28325

Please sign in to comment.