mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- added kgsws's 3D floor textute rotation fix.
SVN r3221 (trunk)
This commit is contained in:
parent
2e4e5bdb28
commit
0991d45838
1 changed files with 17 additions and 13 deletions
|
@ -1120,7 +1120,7 @@ void R_Subsector (subsector_t *sub)
|
|||
int floorlightlevel; // killough 3/16/98: set floor lightlevel
|
||||
int ceilinglightlevel; // killough 4/11/98
|
||||
bool outersubsector;
|
||||
int fll, cll;
|
||||
int fll, cll, position;
|
||||
|
||||
// kg3D - fake floor stuff
|
||||
visplane_t *backupfp;
|
||||
|
@ -1269,10 +1269,12 @@ void R_Subsector (subsector_t *sub)
|
|||
fake3D = FAKE3D_FAKEFLOOR;
|
||||
tempsec = *fakeFloor->model;
|
||||
tempsec.floorplane = *fakeFloor->top.plane;
|
||||
tempsec.ceilingplane = *fakeFloor->bottom.plane;
|
||||
if (!(fakeFloor->flags & FF_THISINSIDE) && !(fakeFloor->flags & FF_INVERTSECTOR))
|
||||
{
|
||||
tempsec.SetTexture(sector_t::floor, tempsec.GetTexture(sector_t::ceiling));
|
||||
}
|
||||
position = sector_t::ceiling;
|
||||
} else position = sector_t::floor;
|
||||
frontsector = &tempsec;
|
||||
|
||||
if (fixedlightlev < 0 && sub->sector->e->XFloor.lightlist.Size())
|
||||
|
@ -1288,11 +1290,11 @@ void R_Subsector (subsector_t *sub)
|
|||
floorlightlevel + r_actualextralight, // killough 3/16/98
|
||||
frontsector->GetAlpha(sector_t::floor),
|
||||
!!(frontsector->GetFlags(sector_t::floor) & PLANEF_ADDITIVE),
|
||||
frontsector->GetXOffset(sector_t::floor), // killough 3/7/98
|
||||
frontsector->GetYOffset(sector_t::floor), // killough 3/7/98
|
||||
frontsector->GetXScale(sector_t::floor),
|
||||
frontsector->GetYScale(sector_t::floor),
|
||||
frontsector->GetAngle(sector_t::floor),
|
||||
frontsector->GetXOffset(position), // killough 3/7/98
|
||||
frontsector->GetYOffset(position), // killough 3/7/98
|
||||
frontsector->GetXScale(position),
|
||||
frontsector->GetYScale(position),
|
||||
frontsector->GetAngle(position),
|
||||
frontsector->sky,
|
||||
NULL);
|
||||
|
||||
|
@ -1328,12 +1330,14 @@ void R_Subsector (subsector_t *sub)
|
|||
{
|
||||
fake3D = FAKE3D_FAKECEILING;
|
||||
tempsec = *fakeFloor->model;
|
||||
tempsec.floorplane = *fakeFloor->top.plane;
|
||||
tempsec.ceilingplane = *fakeFloor->bottom.plane;
|
||||
if ((!(fakeFloor->flags & FF_THISINSIDE) && !(fakeFloor->flags & FF_INVERTSECTOR)) ||
|
||||
(fakeFloor->flags & FF_THISINSIDE && fakeFloor->flags & FF_INVERTSECTOR))
|
||||
{
|
||||
tempsec.SetTexture(sector_t::ceiling, tempsec.GetTexture(sector_t::floor));
|
||||
}
|
||||
position = sector_t::floor;
|
||||
} else position = sector_t::ceiling;
|
||||
frontsector = &tempsec;
|
||||
|
||||
tempsec.ceilingplane.ChangeHeight(-1);
|
||||
|
@ -1351,11 +1355,11 @@ void R_Subsector (subsector_t *sub)
|
|||
ceilinglightlevel + r_actualextralight, // killough 4/11/98
|
||||
frontsector->GetAlpha(sector_t::ceiling),
|
||||
!!(frontsector->GetFlags(sector_t::ceiling) & PLANEF_ADDITIVE),
|
||||
frontsector->GetXOffset(sector_t::ceiling), // killough 3/7/98
|
||||
frontsector->GetYOffset(sector_t::ceiling), // killough 3/7/98
|
||||
frontsector->GetXScale(sector_t::ceiling),
|
||||
frontsector->GetYScale(sector_t::ceiling),
|
||||
frontsector->GetAngle(sector_t::ceiling),
|
||||
frontsector->GetXOffset(position), // killough 3/7/98
|
||||
frontsector->GetYOffset(position), // killough 3/7/98
|
||||
frontsector->GetXScale(position),
|
||||
frontsector->GetYScale(position),
|
||||
frontsector->GetAngle(position),
|
||||
frontsector->sky,
|
||||
NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue