Skip to content
Snippets Groups Projects
Commit 698dd624 authored by MIDIMan's avatar MIDIMan
Browse files

Add check for hud_powerups to SCR_ClosedCaptions

parent 408021b9
No related branches found
No related tags found
2 merge requests!2355fix newer versions of mixerx,!2234Make powerups HUD toggleable via Lua (again)
......@@ -44,6 +44,8 @@
// SRB2Kart
#include "r_fps.h" // R_GetFramerateCap
#include "lua_hud.h" // LUA_HudEnabled
// --------------------------------------------
// assembly or c drawer routines for 8bpp/16bpp
// --------------------------------------------
......@@ -565,6 +567,7 @@ void SCR_ClosedCaptions(void)
basey -= 8;
else if ((modeattacking == ATTACKING_NIGHTS)
|| (!(maptol & TOL_NIGHTS)
&& LUA_HudEnabled(hud_powerups)
&& ((cv_powerupdisplay.value == 2) // "Always"
|| (cv_powerupdisplay.value == 1 && !camera.chase)))) // "First-person only"
basey -= 16;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment