attempt at fixing software skywalls

This commit is contained in:
Alug committed 2025-06-07 20:31:14 +02:00
1 parent 1ab828d23c
commit c78305f1f1
1 file changed
+8
+8
View File
@@ -1863,6 +1863,14 @@ void R_StoreWallRange(INT32 start, INT32 stop)
worldlow -= viewz;
worldlowslope -= viewz;
if (frontsector->ceilingpic != skyflatnum
&& backsector->ceilingpic == skyflatnum)
{
if ((worldhigh <= worldtop && worldhighslope <= worldtopslope) // Assuming ESLOPE is always on with my changes
&& (worldhigh != worldtop || worldhighslope != worldtopslope))
worldtop = worldhigh;
}
// hack to allow height changes in outdoor areas
// This is what gets rid of the upper textures if there should be sky
if (frontsector->ceilingpic == skyflatnum