Skip to content

Commit

Permalink
trying to add X to main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
erfg12 committed Mar 30, 2019
1 parent 666a765 commit 60599fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/diablo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,9 +1084,9 @@ void __fastcall PressKey(int vkey)
if (v1 == VK_RETURN) {
control_type_message();
}
if (v1 == VK_ESCAPE) {
if (v1 == VK_ESCAPE || v1 == 0x58) {
LABEL_113:
if (v1 == VK_ESCAPE) {
if (v1 == VK_ESCAPE || v1 == 0x58) {
if (!PressEscKey()) {
track_repeat_walk(0);
gamemenu_previous();
Expand Down
1 change: 1 addition & 0 deletions Source/gmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ BOOL __fastcall gmenu_presskeys(int a1)
}
break;
case VK_ESCAPE:
case 0x58:
if (gticks - gmenuslow > 300) {
PlaySFX(IS_TITLEMOV);
gmenu_call_proc(0, 0);
Expand Down

0 comments on commit 60599fa

Please sign in to comment.