Fix #328 and also fix a similar problem with cg_weaponBarStyle. (#335)

This commit is contained in:
NeonKnightOA 2024-04-06 09:06:57 -03:00 committed by GitHub
parent bcd778cd17
commit 10d6852bd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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:

View file

@ -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;