From fbe5c6c6bf17292b3b9e8ae187647f3286e39c74 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 10 Nov 2017 00:24:27 +0100 Subject: [PATCH] Corrected zone name colour blending --- SilentPatchSA/SilentPatchSA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 486027d..c3d5f20 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -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(pCurrZoneInfo->ZoneColour.a) / 255.0; - *this = CRGBA(BlendSqr( CRGBA(r, g, b), HudColour[3], colourIntensity ), a); + const double colourIntensity = std::min( static_cast(pCurrZoneInfo->ZoneColour.a) / 120.0, 1.0 ); + *this = CRGBA(BlendSqr( HudColour[3], CRGBA(r, g, b), colourIntensity ), a); return this; }