}
else
Vector4Copy(string_colors[colorindex], color);
- Vector4Set(color, (color[0] * C + B) * r, (color[1] * C + B) * g, (color[2] * C + B) * b, color[3] * a);
+ Vector4Set(color, color[0] * r * C + B, color[1] * g * C + B, color[2] * b * C + B, color[3] * a);
if (shadow)
{
- float shadowalpha = color[0]+color[1]+color[2] * 0.8;
+ float shadowalpha = (color[0]+color[1]+color[2]) * 0.8;
Vector4Set(color, 0, 0, 0, color[3] * bound(0, shadowalpha, 1));
}
}
colorindex = STRING_COLOR_DEFAULT;
else
colorindex = *outcolor;
+
DrawQ_GetTextColor(color, colorindex, basered, basegreen, baseblue, basealpha, shadow);
x = startx;