Correct ceiling palette and shade validation in Polymer. That fix prevents changes to a ceiling palettes or shade from being ignored until the sector gets otherwise invalidated.

git-svn-id: https://svn.eduke32.com/eduke32@1555 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-12-07 07:04:57 +00:00
parent 905abc3091
commit 0888dbc38e

View file

@ -2072,7 +2072,9 @@ attributes:
if ((!s->flags.empty) && (!s->flags.invalidtex) && if ((!s->flags.empty) && (!s->flags.invalidtex) &&
(sec->floorshade == s->floorshade) && (sec->floorshade == s->floorshade) &&
(sec->ceilingshade == s->ceilingshade) &&
(sec->floorpal == s->floorpal) && (sec->floorpal == s->floorpal) &&
(sec->ceilingpal == s->ceilingpal) &&
(floorpicnum == s->floorpicnum) && (floorpicnum == s->floorpicnum) &&
(ceilingpicnum == s->ceilingpicnum)) (ceilingpicnum == s->ceilingpicnum))
goto finish; goto finish;
@ -2083,7 +2085,9 @@ attributes:
s->flags.invalidtex = 0; s->flags.invalidtex = 0;
s->floorshade = sec->floorshade; s->floorshade = sec->floorshade;
s->ceilingshade = sec->ceilingshade;
s->floorpal = sec->floorpal; s->floorpal = sec->floorpal;
s->ceilingpal = sec->ceilingpal;
s->floorpicnum = floorpicnum; s->floorpicnum = floorpicnum;
s->ceilingpicnum = ceilingpicnum; s->ceilingpicnum = ceilingpicnum;