mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
polymer: fix leading whitespace in polymer_drawmdsprite
git-svn-id: https://svn.eduke32.com/eduke32@2051 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
83a359973c
commit
6863a463b4
1 changed files with 4 additions and 4 deletions
|
@ -3882,7 +3882,7 @@ static void polymer_drawmdsprite(spritetype *tspr)
|
||||||
spos[0] = (float)tspr->y;
|
spos[0] = (float)tspr->y;
|
||||||
spos[1] = -(float)(tspr->z) / 16.0f;
|
spos[1] = -(float)(tspr->z) / 16.0f;
|
||||||
spos[2] = -(float)tspr->x;
|
spos[2] = -(float)tspr->x;
|
||||||
|
|
||||||
spos2[0] = spos2[1] = spos2[2] = 0.0f;
|
spos2[0] = spos2[1] = spos2[2] = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4010,7 +4010,7 @@ static void polymer_drawmdsprite(spritetype *tspr)
|
||||||
|
|
||||||
color[0] = color[1] = color[2] =
|
color[0] = color[1] = color[2] =
|
||||||
((float)(numpalookups-min(max((tspr->shade * shadescale)+m->shadeoff,0),numpalookups)))/((float)numpalookups) * 0xFF;
|
((float)(numpalookups-min(max((tspr->shade * shadescale)+m->shadeoff,0),numpalookups)))/((float)numpalookups) * 0xFF;
|
||||||
|
|
||||||
usinghighpal = (pr_highpalookups &&
|
usinghighpal = (pr_highpalookups &&
|
||||||
prhighpalookups[curbasepal][tspr->pal].map);
|
prhighpalookups[curbasepal][tspr->pal].map);
|
||||||
|
|
||||||
|
@ -4163,11 +4163,11 @@ static void polymer_drawmdsprite(spritetype *tspr)
|
||||||
mdspritematerial.specmaterial[1] = sk->specfactor;
|
mdspritematerial.specmaterial[1] = sk->specfactor;
|
||||||
foundpalskin = 1;
|
foundpalskin = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we have a global palette tint, the palskin won't do us any good
|
// If we have a global palette tint, the palskin won't do us any good
|
||||||
if (curbasepal)
|
if (curbasepal)
|
||||||
foundpalskin = 0;
|
foundpalskin = 0;
|
||||||
|
|
||||||
if (!foundpalskin && usinghighpal) {
|
if (!foundpalskin && usinghighpal) {
|
||||||
// We don't have a specific skin defined for this palette
|
// We don't have a specific skin defined for this palette
|
||||||
// Use the base skin instead and plug in our highpalookup map
|
// Use the base skin instead and plug in our highpalookup map
|
||||||
|
|
Loading…
Reference in a new issue