From 95d6c6f281ea0f7ce406576ee8538a458c0d6862 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 21 Aug 2011 19:41:34 +0000 Subject: [PATCH] Polymer: fix sector masks translucency. The code was using the Polymer-cached version of the sector cstat to determine the translucency of its diffuse material, meaning it would never get it right on the first try; that's what you get for having completely different variables named 's' and 'sec'. git-svn-id: https://svn.eduke32.com/eduke32@1991 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index d2567d98c..340018493 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -2327,8 +2327,8 @@ attributes: polymer_getbuildmaterial(&s->floor.material, floorpicnum, sec->floorpal, sec->floorshade, 0); - if (s->floorstat & 256) { - if (s->floorstat & 128) { + if (sec->floorstat & 256) { + if (sec->floorstat & 128) { s->floor.material.diffusemodulation[3] = 0x55; } else { s->floor.material.diffusemodulation[3] = 0xAA; @@ -2337,8 +2337,8 @@ attributes: polymer_getbuildmaterial(&s->ceil.material, ceilingpicnum, sec->ceilingpal, sec->ceilingshade, 0); - if (s->ceilingstat & 256) { - if (s->ceilingstat & 128) { + if (sec->ceilingstat & 256) { + if (sec->ceilingstat & 128) { s->ceil.material.diffusemodulation[3] = 0x55; } else { s->ceil.material.diffusemodulation[3] = 0xAA;