From 48c61397025d4b13ec00c7b11f06a4c2d46c88b3 Mon Sep 17 00:00:00 2001 From: Des Date: Fri, 20 Sep 2024 12:10:50 -0300 Subject: [PATCH] Add defaults in code so it works when client doesn't have default .cfg --- qcsrc/client/hud/panel/racesplits.qc | 4 ++++ qcsrc/client/hud/panel/racesplits.qh | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/hud/panel/racesplits.qc b/qcsrc/client/hud/panel/racesplits.qc index 269deca1e..1afa24520 100644 --- a/qcsrc/client/hud/panel/racesplits.qc +++ b/qcsrc/client/hud/panel/racesplits.qc @@ -44,6 +44,10 @@ void HUD_RaceSplits() } HUD_Panel_LoadCvars(); + // default values for <= 0.8.6 cna be removed after next release + registercvar("hud_panel_racesplits_pos", "0.700000 0.190000"); + registercvar("hud_panel_racesplits_size", "0.250000 0.170000"); + vector pos, mySize; pos = panel_pos; mySize = panel_size; diff --git a/qcsrc/client/hud/panel/racesplits.qh b/qcsrc/client/hud/panel/racesplits.qh index 4f4c5988e..41e739267 100644 --- a/qcsrc/client/hud/panel/racesplits.qh +++ b/qcsrc/client/hud/panel/racesplits.qh @@ -2,8 +2,8 @@ #include "../panel.qh" bool autocvar_hud_panel_racesplits; -bool autocvar_hud_panel_racesplits_dynamichud = false; -bool autocvar_hud_panel_racesplits_flip; -bool autocvar_hud_panel_racesplits_align; -int autocvar_hud_panel_racesplits_lines; +bool autocvar_hud_panel_racesplits_dynamichud = true; +bool autocvar_hud_panel_racesplits_flip = false; +bool autocvar_hud_panel_racesplits_align = true; +int autocvar_hud_panel_racesplits_lines = 8; -- 2.39.2