Commit c06c78ad authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: fix menu navigation with left controller stick when not in a game and no demos are playing

parent f396417e
......@@ -784,6 +784,8 @@ nextdemo_nomenu:
if (engineFPSLimit((g_player[myconnectindex].ps->gm & MODE_MENU) == MODE_MENU))
{
G_HandleLocalKeys();
if (foundemo == 0)
{
G_DrawBackground();
......@@ -793,7 +795,6 @@ nextdemo_nomenu:
// NOTE: currently, no key/mouse events will be seen while
// demo-profiling because we need 'totalclock' for ourselves.
// And handleevents() -> sampletimer() would mess that up.
G_HandleLocalKeys();
// Render one frame (potentially many if profiling)
if (Demo_IsProfiling())
......
......@@ -4621,7 +4621,7 @@ void G_HandleLocalKeys(void)
// CONTROL_ProcessBinds();
auto &myplayer = *g_player[myconnectindex].ps;
if (ud.recstat == 2)
if (ud.recstat == 2 || (myplayer.gm & MODE_MENU) == MODE_MENU)
{
ControlInfo noshareinfo;
CONTROL_GetInput(&noshareinfo);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment