Skip to content

Commit 8fc9212

Browse files
committed
Fix menu code eating +/- key presses in automap
1 parent 6b41386 commit 8fc9212

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/m_menu.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3541,7 +3541,10 @@ bool M_Responder(event_t *ev)
35413541
else if (key == '-')
35423542
{
35433543
// Screen size down
3544-
if (consoleactive || paused || splashscreen || automapactive || fadecount || animatingpillarboxes)
3544+
if (automapactive)
3545+
return false;
3546+
3547+
if (consoleactive || paused || splashscreen || fadecount || animatingpillarboxes)
35453548
return true;
35463549

35473550
keydown = key;
@@ -3573,7 +3576,10 @@ bool M_Responder(event_t *ev)
35733576
else if (key == '=')
35743577
{
35753578
// Screen size up
3576-
if (consoleactive || paused || splashscreen || automapactive || fadecount || animatingpillarboxes)
3579+
if (automapactive)
3580+
return false;
3581+
3582+
if (consoleactive || paused || splashscreen || fadecount || animatingpillarboxes)
35773583
return true;
35783584

35793585
keydown = key;

0 commit comments

Comments
 (0)