Add itemtimers and lapsplits into list of lua-togglable hud items

This commit is contained in:
Indev 2025-12-24 01:41:07 +03:00
parent fcd4a2cef9
commit 7af70c581a
4 changed files with 8 additions and 0 deletions

View file

@ -208,6 +208,7 @@ void K_DisplayItemTimers(void)
{
if (!cv_itemtimers.value) return;
// nooope
if (!LUA_HudEnabled(hud_itemtimers)) return;
if (stplyr->mo == NULL || P_MobjWasRemoved(stplyr->mo)) return;
// I love and hate you C++
std::vector<itimer_t> timers =

View file

@ -3224,6 +3224,9 @@ static INT32 K_GetRaceSplitsToggle(void)
return 0;
}
if (!LUA_HudEnabled(hud_lapsplits))
return 0;
// Not taking any chances with this stupid goddamn engine.
return max((INT32)(cv_racesplits.value), 1);
}

View file

@ -42,6 +42,8 @@ enum hud {
hud_lives,
hud_freeplay,
hud_rankings, // Tab rankings
hud_lapsplits,
hud_itemtimers,
// Intermission
hud_intermissiontally,

View file

@ -74,6 +74,8 @@ static const char *const hud_disable_options[] = {
"lives",
"freeplay",
"rankings",
"lapsplits",
"itemtimers",
"intermissiontally",
"intermissionmessages",