mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 09:21:12 +00:00
Polymer ROR support, but no support for masked floor/ceilings yet.
git-svn-id: https://svn.eduke32.com/eduke32@1919 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
26cd2b309c
commit
0bc508eecd
1 changed files with 24 additions and 2 deletions
|
@ -1897,6 +1897,28 @@ static void polymer_displayrooms(int16_t dacursectnum)
|
|||
drawingstate[wall[sec->wallptr + i].nextsector] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// queue ROR neighbors
|
||||
if (sec->floorstat & 1024) {
|
||||
int16_t nextsec;
|
||||
|
||||
nextsec = sectorofwall(yax_getnextwall(sec->wallptr + i, YAX_FLOOR));
|
||||
|
||||
if (nextsec >= 0 && !drawingstate[nextsec]) {
|
||||
sectorqueue[back++] = nextsec;
|
||||
drawingstate[nextsec] = 1;
|
||||
}
|
||||
}
|
||||
if (sec->ceilingstat & 1024) {
|
||||
int16_t nextsec;
|
||||
|
||||
nextsec = sectorofwall(yax_getnextwall(sec->wallptr + i, YAX_CEILING));
|
||||
|
||||
if (nextsec >= 0 && !drawingstate[nextsec]) {
|
||||
sectorqueue[back++] = nextsec;
|
||||
drawingstate[nextsec] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (--i >= 0);
|
||||
|
||||
|
@ -2646,7 +2668,7 @@ static void polymer_drawsector(int16_t sectnum)
|
|||
bglFogf(GL_FOG_DENSITY,fogresult);
|
||||
bglFogfv(GL_FOG_COLOR,fogcol);
|
||||
|
||||
if (!(sec->floorstat & 1) || (searchit == 2)) {
|
||||
if (!(sec->floorstat & 1025) || (searchit == 2)) {
|
||||
if (searchit == 2) {
|
||||
memcpy(oldcolor, s->floor.material.diffusemodulation, sizeof(GLubyte) * 4);
|
||||
|
||||
|
@ -2665,7 +2687,7 @@ static void polymer_drawsector(int16_t sectnum)
|
|||
bglFogf(GL_FOG_DENSITY,fogresult);
|
||||
bglFogfv(GL_FOG_COLOR,fogcol);
|
||||
|
||||
if (!(sec->ceilingstat & 1) || (searchit == 2)) {
|
||||
if (!(sec->ceilingstat & 1025) || (searchit == 2)) {
|
||||
if (searchit == 2) {
|
||||
memcpy(oldcolor, s->ceil.material.diffusemodulation, sizeof(GLubyte) * 4);
|
||||
|
||||
|
|
Loading…
Reference in a new issue