From f96521a7f45a44d637c88612efa5824207188b1c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 2 Jun 2021 20:32:35 +0200 Subject: [PATCH] - fixed: Floor sprites must set their view orientation. The translucent element sorter needs this to operate properly. --- source/core/rendering/scene/hw_flats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/rendering/scene/hw_flats.cpp b/source/core/rendering/scene/hw_flats.cpp index 71572627b..55d10901b 100644 --- a/source/core/rendering/scene/hw_flats.cpp +++ b/source/core/rendering/scene/hw_flats.cpp @@ -369,6 +369,6 @@ void HWFlat::ProcessFlatSprite(HWDrawInfo* di, spritetype* sprite, sectortype* s SetSpriteTranslucency(sprite, alpha, RenderStyle); - PutFlat(di, 0); + PutFlat(di, z > di->Viewpoint.Pos.Z); } }