From a5eb3903b27e4d53f79c56fb9ebad3de552d666b Mon Sep 17 00:00:00 2001 From: plagman Date: Sat, 12 Dec 2009 22:06:41 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/polymer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index a51d6a865..bd9c2677f 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -2835,7 +2835,9 @@ static void polymer_drawwall(int16_t sectnum, int16_t wallnum) 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);