static tempsec for R_FakeFlat

I don't fully understand this, but it's what software does and it fixes the issue of the lighting in DSZ3. Also don't need the extra call to R_Prep3DFloors.
This commit is contained in:
Sryder 2018-03-29 23:28:54 +01:00
parent f62cb3a30a
commit 65c893da86
1 changed files with 2 additions and 4 deletions

View File

@ -2676,7 +2676,7 @@ static void HWR_AddLine(seg_t * line)
angle_t span, tspan;
// SoM: Backsector needs to be run through R_FakeFlat
sector_t tempsec;
static sector_t tempsec;
if (line->polyseg && !(line->polyseg->flags & POF_RENDERSIDES))
return;
@ -3235,7 +3235,7 @@ static void HWR_Subsector(size_t num)
INT16 count;
seg_t *line;
subsector_t *sub;
sector_t tempsec; //SoM: 4/7/2000
static sector_t tempsec; //SoM: 4/7/2000
INT32 floorlightlevel;
INT32 ceilinglightlevel;
INT32 locFloorHeight, locCeilingHeight;
@ -3418,8 +3418,6 @@ static void HWR_Subsector(size_t num)
{
/// \todo fix light, xoffs, yoffs, extracolormap ?
ffloor_t * rover;
R_Prep3DFloors(gr_frontsector);
for (rover = gr_frontsector->ffloors;
rover; rover = rover->next)
{