Skip to content

Commit

Permalink
Fix opening automap
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 25, 2024
1 parent 86345a5 commit 9e39c0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,9 @@ bool AM_Responder(const event_t *ev)
{
if ((ev->type == ev_keydown
&& (ev->data1 == keyboardautomap
|| ev->data1 == keyboardautomap2)
|| (keyboardautomap2 && ev->data1 == keyboardautomap2))
&& keydown != keyboardautomap
&& keydown != keyboardautomap2
&& (!keyboardautomap2 || keydown != keyboardautomap2)
&& !(modstate & KMOD_ALT))
|| (ev->type == ev_mouse
&& mouseautomap >= 0
Expand Down Expand Up @@ -801,8 +801,8 @@ bool AM_Responder(const event_t *ev)
}

// leave automap
else if ((key == keyboardautomap || key == keyboardautomap2) && !(modstate & KMOD_ALT)
&& keydown != keyboardautomap && keydown != keyboardautomap2 && !mapwindow)
else if ((key == keyboardautomap || (keyboardautomap2 && key == keyboardautomap2)) && !(modstate & KMOD_ALT)
&& keydown != keyboardautomap && (!keyboardautomap2 || keydown != keyboardautomap2) && !mapwindow)
{
keydown = key;
viewactive = true;
Expand Down

0 comments on commit 9e39c0f

Please sign in to comment.