From: Des Date: Fri, 20 Sep 2024 15:10:50 +0000 (-0300) Subject: Add defaults in code so it works when client doesn't have default .cfg X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48c61397025d4b13ec00c7b11f06a4c2d46c88b3;p=xonotic%2Fxonotic-data.pk3dir.git Add defaults in code so it works when client doesn't have default .cfg --- 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;