Skip to content

Commit

Permalink
Fix #328 and also fix a similar problem with cg_weaponBarStyle. (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonKnightOA committed Apr 6, 2024
1 parent bcd778c commit 10d6852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@

**Release date:** April 7, 2024

* Fixed: The values of `cg_obituaryOutput` and `cg_weaponBarStyle` weren't properly loaded in Classic UI's HUD menu.
* Fixed: Team Deathmatch wasn't accounted as a team-based gametype.
* New cvar: `g_autoGameLimits`, if set, uses the frag, time and capturelimits set in the .info or .arena files (including `arenas.txt`) rather than user-set values. It's enabled by default for SP. This also allows the usage of `capturelimit` in .arena files.
* New special matches for Classic SP in addition to `"training"` and `"final"`. These can be specified in either the map's specific .info file (the game will look at this first) the map's .arena file or arenas.txt:
Expand Down
4 changes: 2 additions & 2 deletions code/q3_ui/ui_hud.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ static void HUDOptions_SetMenuItems( void ) {
hudOptions_s.crosshairColorBlue.curvalue = trap_Cvar_VariableValue( "cg_crosshairColorBlue")*255.0f;
hudOptions_s.draw3DIcons.curvalue = trap_Cvar_VariableValue( "cg_draw3DIcons") != 0;
hudOptions_s.alwaysWeaponBar.curvalue = trap_Cvar_VariableValue( "cg_alwaysWeaponBar" ) != 0;
hudOptions_s.weaponBarStyle.curvalue = trap_Cvar_VariableValue( "cg_weaponBarStyle" ) != 0;
hudOptions_s.weaponBarStyle.curvalue = Com_Clamp( 0, 7, trap_Cvar_VariableValue( "cg_weaponBarStyle" ) );
hudOptions_s.identifyTarget.curvalue = trap_Cvar_VariableValue( "cg_drawCrosshairNames" ) != 0;
hudOptions_s.drawTeamOverlay.curvalue = Com_Clamp( 0, 3, trap_Cvar_VariableValue( "cg_drawTeamOverlay" ) );
hudOptions_s.obituaryOutput.curvalue = trap_Cvar_VariableValue( "cg_obituaryOutput" ) != 0;
hudOptions_s.obituaryOutput.curvalue = Com_Clamp( 0, 4, trap_Cvar_VariableValue( "cg_obituaryOutput" ) );
hudOptions_s.drawFPS.curvalue = trap_Cvar_VariableValue( "cg_drawfps") != 0;
hudOptions_s.drawTimer.curvalue = trap_Cvar_VariableValue( "cg_drawTimer") != 0;
hudOptions_s.drawStatus.curvalue = trap_Cvar_VariableValue( "cg_drawStatus") != 0;
Expand Down

0 comments on commit 10d6852

Please sign in to comment.