Moved ColormapNum to visstyle_t and changed colormap to BaseColormap
This commit is contained in:
parent
41537a50ab
commit
672b80898b
4 changed files with 70 additions and 52 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue