// does this index have a split?
if (race_checkpoint_splits[i])
{
- // print it and free it
- LOG_HELP(race_checkpoint_splits[i]);
+ // print it if enabled and free it
+ if (autocvar_cl_race_checkpoint_splits_console)
+ LOG_HELP(race_checkpoint_splits[i]);
strfree(race_checkpoint_splits[i]);
}
}
bool autocvar_hud_showbinds_limit;
bool autocvar__hud_showbinds_reload;
bool autocvar_developer_csqcentities;
+#if 0
+// TODO: change this path after next (0.9) release
+// or the release after it to support the old-stable release
+// this can't be done now as players would lack these from their configs then
+bool autocvar_cl_race_checkpoint_splits_console;
+#else
+AUTOCVAR_SAVE(cl_race_checkpoint_splits_console, bool, 1, "Print checkpoint splits to console");
+#endif
bool autocvar_cl_race_cptimes_onlyself; // TODO: move to race gamemode
bool autocvar_cl_race_cptimes_showself = false;
bool autocvar_cl_welcome = true;
seta cl_race_cptimes_showself 1 "Always show your own times as well as the current best on checkpoints in Race/CTS"
seta cl_race_cptimes_onlyself 0 "Only show your own times on checkpoints in Race/CTS. Can be forced on by the server via g_race_cptimes_onlyself"
+seta cl_race_checkpoint_splits_console 1 "Print checkpoint splits to console"
seta cl_cts_noautoswitch 0 "Prevent forced switching to new weapons in CTS"