Eliminate a check that a model's sector's floorpal is nonzero before applying a tint.

git-svn-id: https://svn.eduke32.com/eduke32@5143 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-04-14 08:07:08 +00:00
parent 68e4248cd2
commit d4fb3dfe96
2 changed files with 2 additions and 2 deletions

View file

@ -2103,7 +2103,7 @@ static int32_t polymost_md3draw(md3model_t *m, const tspritetype *tspr)
pc[0] = pc[1] = pc[2] = ((float)(numshades-min(max((globalshade * shadescale)+m->shadeoff,0),numshades)))/((float)numshades);
if (!(hictinting[globalpal].f & HICTINT_COLORIZE))
{
if (!(m->flags&1) || (((unsigned)owner < MAXSPRITES) && sector[sprite[owner].sectnum].floorpal!=0))
if (!(m->flags&1))
{
hictinting_apply(pc, globalpal);

View file

@ -4190,7 +4190,7 @@ static void polymer_drawmdsprite(tspritetype *tspr)
// alternate skins if they exist later, though.
if (!usinghighpal && !(hictinting[tspr->pal].f & HICTINT_COLORIZE))
{
if (!(m->flags&1) || (!(tspr->owner >= MAXSPRITES) && sector[sprite[tspr->owner].sectnum].floorpal!=0))
if (!(m->flags&1))
hictinting_apply_ub(color, tspr->pal);
else globalnoeffect=1; //mdloadskin reads this
}