- 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
|
|
@ -190,7 +190,7 @@ FxExpression *ParseParameter(FScanner &sc, PClassActor *cls, PType *type)
|
|||
}
|
||||
else
|
||||
{
|
||||
int c = V_GetColor (NULL, sc);
|
||||
int c = V_GetColor (sc);
|
||||
// 0 needs to be the default so we have to mark the color.
|
||||
v = MAKEARGB(1, RPART(c), GPART(c), BPART(c));
|
||||
}
|
||||
|
|
@ -884,7 +884,7 @@ static void DispatchScriptProperty(FScanner &sc, PProperty *prop, AActor *defaul
|
|||
else if (f->Type == TypeColor)
|
||||
{
|
||||
if (sc.CheckNumber()) *(int*)addr = sc.Number;
|
||||
else *(PalEntry*)addr = V_GetColor(nullptr, sc);
|
||||
else *(PalEntry*)addr = V_GetColor(sc);
|
||||
}
|
||||
else if (f->Type->isIntCompatible())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -326,6 +326,6 @@ int MatchString (const char *in, const char **strings);
|
|||
double var = params[(no)+1].d;
|
||||
|
||||
#define PROP_COLOR_PARM(var, no, scriptpos) \
|
||||
int var = params[(no)+1].i== 0? params[(no)+2].i : V_GetColor(NULL, params[(no)+2].s, scriptpos);
|
||||
int var = params[(no)+1].i== 0? params[(no)+2].i : V_GetColor(params[(no)+2].s, scriptpos);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1291,7 +1291,7 @@ DEFINE_CLASS_PROPERTY_PREFIX(powerup, color, C_f, Inventory)
|
|||
*pBlendColor = MakeSpecialColormap(65535);
|
||||
return;
|
||||
}
|
||||
color = V_GetColor(NULL, name, &bag.ScriptPosition);
|
||||
color = V_GetColor(name, &bag.ScriptPosition);
|
||||
}
|
||||
if (PROP_PARM_COUNT > 2)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -471,7 +471,7 @@ void ZCCDoomCompiler::DispatchScriptProperty(PProperty *prop, ZCC_PropertyStmt *
|
|||
}
|
||||
else if (f->Type == TypeColor && ex->ValueType == TypeString) // colors can also be specified as ints.
|
||||
{
|
||||
*(PalEntry*)addr = V_GetColor(nullptr, GetStringConst(ex, ctx), &ex->ScriptPosition);
|
||||
*(PalEntry*)addr = V_GetColor(GetStringConst(ex, ctx), &ex->ScriptPosition);
|
||||
}
|
||||
else if (f->Type->isIntCompatible())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue