From b177673195c53faa7acca9c05036fe3b13ff7fbc Mon Sep 17 00:00:00 2001 From: fickleheart Date: Sun, 31 Mar 2019 19:29:05 -0500 Subject: [PATCH] Don't draw options menu entry above replay infobox --- src/m_menu.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 0942f1ee..551a5c89 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -5384,13 +5384,18 @@ static void M_DrawReplayHut(void) // Draw static menu items for (i = 0; i < replaylistitem; i++) { + INT32 localy = y + currentMenu->menuitems[i].alphaKey; + + if (localy < 65) + continue; + if (i == itemOn) - cursory = y + currentMenu->menuitems[i].alphaKey; + cursory = localy; if ((currentMenu->menuitems[i].status & IT_DISPLAY)==IT_STRING) - V_DrawString(x, y + currentMenu->menuitems[i].alphaKey, 0, currentMenu->menuitems[i].text); + V_DrawString(x, localy, 0, currentMenu->menuitems[i].text); else - V_DrawString(x, y + currentMenu->menuitems[i].alphaKey, highlightflags, currentMenu->menuitems[i].text); + V_DrawString(x, localy, highlightflags, currentMenu->menuitems[i].text); } y += currentMenu->menuitems[currentMenu->numitems-1].alphaKey;