Correct an error with rev 1556 that would cause drawing problems with parallaxed ceilings.

git-svn-id: https://svn.eduke32.com/eduke32@1563 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-12-12 22:06:41 +00:00
parent 923eeb6f06
commit a5eb3903b2

View file

@ -2835,7 +2835,9 @@ static void polymer_drawwall(int16_t sectnum, int16_t wallnum)
memcpy(w->mask.material.diffusemodulation, oldcolor, sizeof(GLubyte) * 4); memcpy(w->mask.material.diffusemodulation, oldcolor, sizeof(GLubyte) * 4);
} }
if (!searchit && ((wall[wallnum].nextsector < 0) || parallaxedceiling)) if (!searchit && (sector[sectnum].ceilingstat & 1) &&
((wall[wallnum].nextsector < 0) ||
!(sector[wall[wallnum].nextsector].ceilingstat & 1)))
{ {
bglColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); bglColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);