mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 19:50:51 +00:00
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:
parent
f62cb3a30a
commit
65c893da86
1 changed files with 2 additions and 4 deletions
|
@ -2676,7 +2676,7 @@ static void HWR_AddLine(seg_t * line)
|
||||||
angle_t span, tspan;
|
angle_t span, tspan;
|
||||||
|
|
||||||
// SoM: Backsector needs to be run through R_FakeFlat
|
// SoM: Backsector needs to be run through R_FakeFlat
|
||||||
sector_t tempsec;
|
static sector_t tempsec;
|
||||||
|
|
||||||
if (line->polyseg && !(line->polyseg->flags & POF_RENDERSIDES))
|
if (line->polyseg && !(line->polyseg->flags & POF_RENDERSIDES))
|
||||||
return;
|
return;
|
||||||
|
@ -3235,7 +3235,7 @@ static void HWR_Subsector(size_t num)
|
||||||
INT16 count;
|
INT16 count;
|
||||||
seg_t *line;
|
seg_t *line;
|
||||||
subsector_t *sub;
|
subsector_t *sub;
|
||||||
sector_t tempsec; //SoM: 4/7/2000
|
static sector_t tempsec; //SoM: 4/7/2000
|
||||||
INT32 floorlightlevel;
|
INT32 floorlightlevel;
|
||||||
INT32 ceilinglightlevel;
|
INT32 ceilinglightlevel;
|
||||||
INT32 locFloorHeight, locCeilingHeight;
|
INT32 locFloorHeight, locCeilingHeight;
|
||||||
|
@ -3418,8 +3418,6 @@ static void HWR_Subsector(size_t num)
|
||||||
{
|
{
|
||||||
/// \todo fix light, xoffs, yoffs, extracolormap ?
|
/// \todo fix light, xoffs, yoffs, extracolormap ?
|
||||||
ffloor_t * rover;
|
ffloor_t * rover;
|
||||||
|
|
||||||
R_Prep3DFloors(gr_frontsector);
|
|
||||||
for (rover = gr_frontsector->ffloors;
|
for (rover = gr_frontsector->ffloors;
|
||||||
rover; rover = rover->next)
|
rover; rover = rover->next)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue