Moved ColormapNum to visstyle_t and changed colormap to BaseColormap

This commit is contained in:
Magnus Norddahl 2016-06-02 19:26:27 +02:00
commit 672b80898b
4 changed files with 70 additions and 52 deletions

View file

@ -737,7 +737,8 @@ int APowerInvisibility::AlterWeaponSprite (visstyle_t *vis)
if ((vis->Alpha < 0.25f && special1 > 0) || (vis->Alpha == 0))
{
vis->Alpha = clamp((1.f - float(Strength/100)), 0.f, 1.f);
vis->colormap = SpecialColormaps[INVERSECOLORMAP].Colormap;
vis->BaseColormap = SpecialColormaps[INVERSECOLORMAP].Colormap;
vis->ColormapNum = 0;
}
return -1; // This item is valid so another one shouldn't reset the translucency
}