mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
Corrected zone name colour blending
This commit is contained in:
parent
7c831ee2a9
commit
fbe5c6c6bf
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
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;
|
const double colourIntensity = std::min( static_cast<double>(pCurrZoneInfo->ZoneColour.a) / 120.0, 1.0 );
|
||||||
*this = CRGBA(BlendSqr( CRGBA(r, g, b), HudColour[3], colourIntensity ), a);
|
*this = CRGBA(BlendSqr( HudColour[3], CRGBA(r, g, b), colourIntensity ), a);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue