foxygit / doom Log in
commit 308bb4ab6520d67eb6ede6de5d55a691f6ca9877
Author:     Michael Day <contact@michaelcday.com>
AuthorDate: Tue Nov 28 15:37:30 2023 -0500
Commit:     Michael Day <contact@michaelcday.com>
CommitDate: Sun Dec 3 09:58:49 2023 -0500

    doom: Filter joystick after "any key" menu enable

    Fixes bug where a press of joybfire is likely to quickly advance to the
    New Game menu.
---
 src/doom/g_game.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/doom/g_game.c b/src/doom/g_game.c
index 3b881388..f9a1d724 100644
--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -805,6 +805,7 @@ boolean G_Responder (event_t* ev)
 	    (ev->type == ev_joystick && ev->data1) )
 	{
 	    M_StartControlPanel ();
+	    joywait = I_GetTime() + 5;
 	    return true;
 	}
 	return false;