From 4d401089069bb7400a2d14610d3732e3e391e773 Mon Sep 17 00:00:00 2001 From: RaveYard Date: Fri, 24 Jun 2022 21:12:59 +0200 Subject: [PATCH] Fix top side textures not counting towards sky I checked how GZDoom and chocolate Doom behave and it turns out that the top texture is irrelevant but the bottom one is relevant --- src/lightmap/levelmesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightmap/levelmesh.cpp b/src/lightmap/levelmesh.cpp index d4cc656..ae833d0 100644 --- a/src/lightmap/levelmesh.cpp +++ b/src/lightmap/levelmesh.cpp @@ -633,7 +633,7 @@ void LevelMesh::CreateSideSurfaces(FLevel &doomMap, IntSideDef *side) if (front->skyCeiling && back->skyCeiling) { - if (front->data.ceilingheight != back->data.ceilingheight && side->toptexture[0] == '-') + if (front->data.ceilingheight != back->data.ceilingheight) { bSky = true; }