mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 09:21:12 +00:00
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:
parent
458ad8fa04
commit
95d6c6f281
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue