Add itemtimers and lapsplits into list of lua-togglable hud items
This commit is contained in:
parent
fcd4a2cef9
commit
7af70c581a
4 changed files with 8 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@ enum hud {
|
|||
hud_lives,
|
||||
hud_freeplay,
|
||||
hud_rankings, // Tab rankings
|
||||
hud_lapsplits,
|
||||
hud_itemtimers,
|
||||
|
||||
// Intermission
|
||||
hud_intermissiontally,
|
||||
|
|
|
|||
|
|
@ -74,6 +74,8 @@ static const char *const hud_disable_options[] = {
|
|||
"lives",
|
||||
"freeplay",
|
||||
"rankings",
|
||||
"lapsplits",
|
||||
"itemtimers",
|
||||
|
||||
"intermissiontally",
|
||||
"intermissionmessages",
|
||||
|
|
|
|||
Loading…
Reference in a new issue