Skip to content

Commit

Permalink
Constify cshiftpercent_cvars array
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Nov 10, 2024
1 parent c6afd64 commit e1fb15c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Quake/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,15 +448,17 @@ V_CalcBlend
*/
void V_CalcBlend (void)
{
float r, g, b, a, a2;
int j;
cvar_t *cshiftpercent_cvars[NUM_CSHIFTS] = {
static const cvar_t * const cshiftpercent_cvars[NUM_CSHIFTS] =
{
&gl_cshiftpercent_contents,
&gl_cshiftpercent_damage,
&gl_cshiftpercent_bonus,
&gl_cshiftpercent_powerup
};

float r, g, b, a, a2;
int j;

r = 0;
g = 0;
b = 0;
Expand Down

0 comments on commit e1fb15c

Please sign in to comment.