- removed the unused palette parameter from the V_GetColor family of functions.
This commit is contained in:
parent
d64dd1f631
commit
109069f718
24 changed files with 53 additions and 56 deletions
|
|
@ -1057,7 +1057,7 @@ class GLDefsParser
|
|||
auto tex = TexMan.GetGameTexture(flump);
|
||||
sc.MustGetStringName(",");
|
||||
sc.MustGetString();
|
||||
PalEntry color = V_GetColor(NULL, sc.String);
|
||||
PalEntry color = V_GetColor(sc.String);
|
||||
//sc.MustGetStringName(",");
|
||||
//sc.MustGetNumber();
|
||||
if (sc.CheckString(","))
|
||||
|
|
@ -1671,12 +1671,12 @@ class GLDefsParser
|
|||
else if (sc.Compare("AddColor"))
|
||||
{
|
||||
sc.MustGetString();
|
||||
tm.AddColor = (tm.AddColor & 0xff000000) | (V_GetColor(NULL, sc) & 0xffffff);
|
||||
tm.AddColor = (tm.AddColor & 0xff000000) | (V_GetColor(sc) & 0xffffff);
|
||||
}
|
||||
else if (sc.Compare("ModulateColor"))
|
||||
{
|
||||
sc.MustGetString();
|
||||
tm.ModulateColor = V_GetColor(NULL, sc) & 0xffffff;
|
||||
tm.ModulateColor = V_GetColor(sc) & 0xffffff;
|
||||
if (sc.CheckToken(','))
|
||||
{
|
||||
sc.MustGetNumber();
|
||||
|
|
@ -1687,7 +1687,7 @@ class GLDefsParser
|
|||
else if (sc.Compare("BlendColor"))
|
||||
{
|
||||
sc.MustGetString();
|
||||
tm.BlendColor = V_GetColor(NULL, sc) & 0xffffff;
|
||||
tm.BlendColor = V_GetColor(sc) & 0xffffff;
|
||||
sc.MustGetToken(',');
|
||||
sc.MustGetString();
|
||||
static const char* opts[] = { "none", "alpha", "screen", "overlay", "hardlight", nullptr };
|
||||
|
|
|
|||
|
|
@ -98,11 +98,11 @@ CCMD (testblend)
|
|||
{
|
||||
if ( !(colorstring = V_GetColorStringByName (argv[1])).IsEmpty() )
|
||||
{
|
||||
color = V_GetColorFromString (NULL, colorstring);
|
||||
color = V_GetColorFromString (colorstring);
|
||||
}
|
||||
else
|
||||
{
|
||||
color = V_GetColorFromString (NULL, argv[1]);
|
||||
color = V_GetColorFromString (argv[1]);
|
||||
}
|
||||
amt = (float)atof (argv[2]);
|
||||
if (amt > 1.0f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue