mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Respect the 'notmd' maphack when deciding to draw models in Polymer.
git-svn-id: https://svn.eduke32.com/eduke32@1680 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a1a5f9cb5a
commit
10830a7f3f
1 changed files with 33 additions and 31 deletions
|
@ -1107,18 +1107,18 @@ void polymer_updatesprite(int32_t snum)
|
|||
i = j = 0;
|
||||
while (j < lightcount)
|
||||
{
|
||||
while (!prlights[i].flags.active)
|
||||
i++;
|
||||
|
||||
if (prlights[i].priority != curpriority)
|
||||
{
|
||||
i++;
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
while (!prlights[i].flags.active)
|
||||
i++;
|
||||
|
||||
if (prlights[i].priority != curpriority)
|
||||
{
|
||||
i++;
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (polymer_planeinlight(&s->plane, &prlights[i]))
|
||||
polymer_addplanelight(&s->plane, i);
|
||||
polymer_addplanelight(&s->plane, i);
|
||||
i++;
|
||||
j++;
|
||||
}
|
||||
|
@ -1305,7 +1305,9 @@ void polymer_drawsprite(int32_t snum)
|
|||
bglFogf(GL_FOG_DENSITY,fogresult);
|
||||
bglFogfv(GL_FOG_COLOR,fogcol);
|
||||
|
||||
if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0)
|
||||
if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 &&
|
||||
tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0 &&
|
||||
!spriteext[tspr->owner].flags & SPREXT_NOTMD)
|
||||
{
|
||||
polymer_drawmdsprite(tspr);
|
||||
return;
|
||||
|
@ -1345,19 +1347,19 @@ void polymer_drawsprite(int32_t snum)
|
|||
i = j = 0;
|
||||
while (j < lightcount)
|
||||
{
|
||||
while (!prlights[i].flags.active)
|
||||
i++;
|
||||
|
||||
if (prlights[i].priority != curpriority)
|
||||
{
|
||||
i++;
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
while (!prlights[i].flags.active)
|
||||
i++;
|
||||
|
||||
if (prlights[i].priority != curpriority)
|
||||
{
|
||||
i++;
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (polymer_planeinlight(&s->plane, &prlights[i]))
|
||||
s->plane.lights[s->plane.lightcount++] = i;
|
||||
|
||||
s->plane.lights[s->plane.lightcount++] = i;
|
||||
|
||||
i++;
|
||||
j++;
|
||||
}
|
||||
|
@ -3647,15 +3649,15 @@ static void polymer_drawmdsprite(spritetype *tspr)
|
|||
i = j = 0;
|
||||
while (j < lightcount)
|
||||
{
|
||||
while (!prlights[i].flags.active)
|
||||
i++;
|
||||
|
||||
if (prlights[i].priority != curpriority)
|
||||
{
|
||||
i++;
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
while (!prlights[i].flags.active)
|
||||
i++;
|
||||
|
||||
if (prlights[i].priority != curpriority)
|
||||
{
|
||||
i++;
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
|
||||
lradius = prlights[i].range / 1000.0f;
|
||||
|
||||
|
|
Loading…
Reference in a new issue