Skip to content

Commit

Permalink
CSkins7::RandomizeSkin: Use enum value instead of hardcode+comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Dec 24, 2023
1 parent d74a3e1 commit e233c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/components/skins7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ void CSkins7::RandomizeSkin(int Dummy)
int Sat = rand() % 255;
int Lgt = rand() % 255;
int Alp = 0;
if(p == 1) // SKINPART_MARKING
if(p == SKINPART_MARKING)
Alp = rand() % 255;
int ColorVariable = (Alp << 24) | (Hue << 16) | (Sat << 8) | Lgt;
*CSkins7::ms_apUCCVariables[Dummy][p] = true;
Expand Down

0 comments on commit e233c0c

Please sign in to comment.