drawtimer cvar

This commit is contained in:
Antonio Martinez 2024-09-09 05:09:56 -07:00
parent e5f740f4a3
commit 216282ba64
3 changed files with 3 additions and 1 deletions

View file

@ -913,6 +913,7 @@ consvar_t cv_debugrender_visplanes = PlayerCheat("debugrender_visplanes", "Off")
consvar_t cv_debugvirtualkeyboard = PlayerCheat("debugvirtualkeyboard", "Off").on_off().description("Always show virtual keyboard instead of using real keyboard input.");
consvar_t cv_devmode_screen = PlayerCheat("devmode_screen", "1").min_max(1, 4).description("Choose which splitscreen player devmode applies to");
consvar_t cv_drawpickups = PlayerCheat("drawpickups", "Yes").yes_no().description("Hide rings, spheres, item capsules, prison capsules (visual only)");
consvar_t cv_drawtimer = PlayerCheat("drawtimer", "Yes").yes_no().description("Always draw the timer (race checkpoint timing, etc)");
void lua_profile_OnChange(void);
consvar_t cv_lua_profile = PlayerCheat("lua_profile", "0").values(CV_Unsigned).onchange(lua_profile_OnChange).description("Show hook timings over an average of N tics");

View file

@ -6494,7 +6494,7 @@ void K_drawKartHUD(void)
}
}
if (modeattacking || (gametyperules & GTR_TIMELIMIT))
if (modeattacking || (gametyperules & GTR_TIMELIMIT) || cv_drawtimer.value)
K_drawKartTimestamp(realtime, TIME_X, TIME_Y + (ta ? 2 : 0), flags, 0);
if (modeattacking)

View file

@ -137,6 +137,7 @@ extern consvar_t cv_skybox;
extern consvar_t cv_drawpickups;
extern consvar_t cv_debugfinishline;
extern consvar_t cv_drawinput;
extern consvar_t cv_drawtimer;
// debugging