Corrected zone name colour blending

This commit is contained in:
Silent 2017-11-10 00:24:27 +01:00
parent 7c831ee2a9
commit fbe5c6c6bf

View file

@ -668,8 +668,8 @@ void DrawMoonWithPhases(int moonColor, float* screenPos, float sizeX, float size
CRGBA* CRGBA::BlendGangColour(uint8_t r, uint8_t g, uint8_t b, uint8_t a)
{
double colourIntensity = static_cast<double>(pCurrZoneInfo->ZoneColour.a) / 255.0;
*this = CRGBA(BlendSqr( CRGBA(r, g, b), HudColour[3], colourIntensity ), a);
const double colourIntensity = std::min( static_cast<double>(pCurrZoneInfo->ZoneColour.a) / 120.0, 1.0 );
*this = CRGBA(BlendSqr( HudColour[3], CRGBA(r, g, b), colourIntensity ), a);
return this;
}