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
This commit is contained in:
plagman 2011-08-21 19:41:34 +00:00
parent 458ad8fa04
commit 95d6c6f281

View file

@ -2327,8 +2327,8 @@ attributes:
polymer_getbuildmaterial(&s->floor.material, floorpicnum, sec->floorpal, sec->floorshade, 0); polymer_getbuildmaterial(&s->floor.material, floorpicnum, sec->floorpal, sec->floorshade, 0);
if (s->floorstat & 256) { if (sec->floorstat & 256) {
if (s->floorstat & 128) { if (sec->floorstat & 128) {
s->floor.material.diffusemodulation[3] = 0x55; s->floor.material.diffusemodulation[3] = 0x55;
} else { } else {
s->floor.material.diffusemodulation[3] = 0xAA; s->floor.material.diffusemodulation[3] = 0xAA;
@ -2337,8 +2337,8 @@ attributes:
polymer_getbuildmaterial(&s->ceil.material, ceilingpicnum, sec->ceilingpal, sec->ceilingshade, 0); polymer_getbuildmaterial(&s->ceil.material, ceilingpicnum, sec->ceilingpal, sec->ceilingshade, 0);
if (s->ceilingstat & 256) { if (sec->ceilingstat & 256) {
if (s->ceilingstat & 128) { if (sec->ceilingstat & 128) {
s->ceil.material.diffusemodulation[3] = 0x55; s->ceil.material.diffusemodulation[3] = 0x55;
} else { } else {
s->ceil.material.diffusemodulation[3] = 0xAA; s->ceil.material.diffusemodulation[3] = 0xAA;