- cleanup.

(The Raven license got removed from sc_man after checking that no Raven code is still present here, this file got a nearly complete overhaul over all those years.)
This commit is contained in:
Christoph Oelckers 2019-12-23 16:57:30 +01:00
commit 3530bc5945
4 changed files with 12 additions and 172 deletions

View file

@ -700,7 +700,7 @@ void FTextureManager::ParseColorization(FScanner& sc)
if (sc.Compare("desaturation"))
{
sc.MustGetFloat();
tm.DesaturationFactor = sc.Float;
tm.DesaturationFactor = (float)sc.Float;
}
else if (sc.Compare("AddColor"))
{
@ -728,7 +728,7 @@ void FTextureManager::ParseColorization(FScanner& sc)
if (sc.CheckToken(','))
{
sc.MustGetFloat();
tm.BlendColor.a = clamp(sc.Float, 0., 1.) * 255;
tm.BlendColor.a = (uint8_t)clamp(sc.Float, 0., 1.) * 255;
}
}
else if (sc.Compare("invert"))