HUD: draw item box over everything else

This commit is contained in:
James R. 2023-10-01 17:44:58 -07:00 committed by James R
parent 4631af55c4
commit bf20db1e5e

View file

@ -5461,19 +5461,6 @@ void K_drawKartHUD(void)
K_drawKartMinimap();
}
// Draw the item window
if (LUA_HudEnabled(hud_item) && !freecam)
{
if (stplyr->itemRoulette.ringbox && stplyr->itemamount == 0 && stplyr->itemtype == 0)
{
K_drawKartSlotMachine();
}
else
{
K_drawKartItem();
}
}
if (demo.title)
;
else if (!r_splitscreen)
@ -5587,6 +5574,19 @@ void K_drawKartHUD(void)
if (LUA_HudEnabled(hud_position))
K_drawInput();
}
// Draw the item window
if (LUA_HudEnabled(hud_item) && !freecam)
{
if (stplyr->itemRoulette.ringbox && stplyr->itemamount == 0 && stplyr->itemtype == 0)
{
K_drawKartSlotMachine();
}
else
{
K_drawKartItem();
}
}
}
}