Skip to content

Commit

Permalink
No not overwrtire automap and send-to keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Jun 5, 2023
1 parent 1525a4d commit b351cfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/doom/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -5244,6 +5244,8 @@ static void M_CheckBind (int key)
if (key_prevweapon == key) key_prevweapon = 0;
if (key_nextweapon == key) key_nextweapon = 0;
// Page 5
if (currentMenu == &CRLDef_Keybinds_5)
{
if (key_map_toggle == key) key_map_toggle = 0;
if (key_map_zoomin == key) key_map_zoomin = 0;
if (key_map_zoomout == key) key_map_zoomout = 0;
Expand All @@ -5254,6 +5256,7 @@ static void M_CheckBind (int key)
if (key_map_grid == key) key_map_grid = 0;
if (key_map_mark == key) key_map_mark = 0;
if (key_map_clearmark == key) key_map_clearmark = 0;
}
// Page 6
if (key_menu_help == key) key_menu_help = 0;
if (key_menu_save == key) key_menu_save = 0;
Expand All @@ -5273,10 +5276,13 @@ static void M_CheckBind (int key)
if (key_message_refresh == key) key_message_refresh = 0;
if (key_demo_quit == key) key_demo_quit = 0;
if (key_multi_msg == key) key_multi_msg = 0;
if (currentMenu == &CRLDef_Keybinds_7)
{
if (key_multi_msgplayer[0] == key) key_multi_msgplayer[0] = 0;
if (key_multi_msgplayer[1] == key) key_multi_msgplayer[1] = 0;
if (key_multi_msgplayer[2] == key) key_multi_msgplayer[2] = 0;
if (key_multi_msgplayer[3] == key) key_multi_msgplayer[3] = 0;
}
}

// -----------------------------------------------------------------------------
Expand Down

0 comments on commit b351cfa

Please sign in to comment.