diff --git a/src/h_timers.cpp b/src/h_timers.cpp index 76fdd73b3..49d42dd88 100644 --- a/src/h_timers.cpp +++ b/src/h_timers.cpp @@ -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 timers = diff --git a/src/k_kart.c b/src/k_kart.c index f1bb950ee..b0d67bd43 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -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); } diff --git a/src/lua_hud.h b/src/lua_hud.h index d4cd6ba1c..11bde3cca 100644 --- a/src/lua_hud.h +++ b/src/lua_hud.h @@ -42,6 +42,8 @@ enum hud { hud_lives, hud_freeplay, hud_rankings, // Tab rankings + hud_lapsplits, + hud_itemtimers, // Intermission hud_intermissiontally, diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 0ca2a7299..7350ff873 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -74,6 +74,8 @@ static const char *const hud_disable_options[] = { "lives", "freeplay", "rankings", + "lapsplits", + "itemtimers", "intermissiontally", "intermissionmessages",