Kill skyfound

This commit is contained in:
NepDisk 2026-03-07 14:28:43 -05:00
parent 5fe1d9eb34
commit bd9d33ce37
3 changed files with 0 additions and 10 deletions

View file

@ -18,8 +18,6 @@
#include "../r_local.h"
#include "../z_zone.h"
boolean gl_sky_found = true;
// From PrBoom:
//
// e6y: Check whether the player can look beyond this line
@ -690,11 +688,6 @@ static void HWR_Subsector(size_t num)
}
}
// Moved here because before, when above the ceiling and the floor does not have the sky flat, it doesn't draw the sky
if (gl_frontsector->ceilingpic == skyflatnum || gl_frontsector->floorpic == skyflatnum)
gl_sky_found = true;
if (gl_frontsector->ffloors)
{
/// \todo fix light, xoffs, yoffs, extracolormap ?

View file

@ -166,7 +166,6 @@ void HWR_ClearLightTables(void);
// hw_bsp.c
// --------
void HWR_RenderBSPNode(INT32 bspnum);
extern boolean gl_sky_found;
// --------
// hw_draw.c

View file

@ -878,7 +878,6 @@ static void HWR_RenderViewpoint(player_t *player, boolean drawSkyTexture, boolea
}
validcount++;
gl_sky_found = false;
HWR_StartBatching();
@ -900,7 +899,6 @@ static void HWR_RenderViewpoint(player_t *player, boolean drawSkyTexture, boolea
//if (gl_printportals)
// CONS_Printf("%d bsp calls\n", ps_numbspcalls);
if (gl_sky_found)
{
// HWR_DrawSkyBackground is not able to set the texture without
// pausing batching first