From: PBeGood4 Date: Thu, 16 May 2024 11:21:11 +0100 Subject: [PATCH] Fix z-fighting on bottom texture with skytexture If the sector height is 0 and the floor is a skytexture, then in the bottom texture a sky hack would be drawn I cant seem to figure out why this if statement exists in the first place --- prboom2/src/gl_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prboom2/src/gl_main.c b/prboom2/src/gl_main.c index 41cc22edb..c80821393 100644 --- a/prboom2/src/gl_main.c +++ b/prboom2/src/gl_main.c @@ -1603,7 +1603,8 @@ bottomtexture: wall.ybottom=-MAXCOORD*2; if ( (backsector->ceilingheight==backsector->floorheight) && - (backsector->floorpic==skyflatnum) + (backsector->floorpic==skyflatnum) && + (bottomtexture == NO_TEXTURE) ) { wall.ytop=(float)backsector->floorheight/MAP_SCALE; -- 2.46.2