We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a95d0c1 commit bf1aa0bCopy full SHA for bf1aa0b
1 file changed
src_rebuild/Game/C/cosmetic.c
@@ -173,12 +173,11 @@ void AddIndicatorLight(CAR_DATA *cp, int Type)
173
life2 = &cp->ap.life2;
174
175
if (cp->ap.life < 0)
176
- brightness = (0xff - (u_int)cp->ap.life) * 2;
+ brightness = (255 - (u_int)cp->ap.life) * 2 & 255;
177
else
178
- brightness = cp->ap.life << 1;
179
-
180
- col.r = brightness & 0xFF;
+ brightness = cp->ap.life << 1 & 255;
181
+ col.r = brightness;
182
col.g = 0;
183
col.b = 0;
184
0 commit comments