From 17c212d5bc98462ba6e4950cdfeca7b98d9ede31 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 29 Jun 2016 12:19:00 +0200 Subject: [PATCH] - disable transparent door render hacks if any of the involved sectors contains floor slopes. These lead to false positives but rarely represent actual hacks. --- src/gl/data/gl_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/data/gl_setup.cpp b/src/gl/data/gl_setup.cpp index a6a0141f3..fb9c2252f 100644 --- a/src/gl/data/gl_setup.cpp +++ b/src/gl/data/gl_setup.cpp @@ -348,7 +348,7 @@ static void PrepareTransparentDoors(sector_t * sector) int side = sector->lines[i]->sidedef[0]->sector == sec; - if (sector->GetPlaneTexZ(sector_t::floor)!=sec->GetPlaneTexZ(sector_t::floor)+1.) + if (sector->GetPlaneTexZ(sector_t::floor)!=sec->GetPlaneTexZ(sector_t::floor)+1. || sec->floorplane.isSlope()) { sector->transdoor=false; return;