From 27248a82d710f00932874f0c33267a6fdb2c2151 Mon Sep 17 00:00:00 2001 From: MaxED Date: Mon, 1 Jul 2013 10:51:23 +0000 Subject: [PATCH] Visual mode: in some cases solid 3d floors were clipped by translucent ones. --- Source/Plugins/BuilderModes/VisualModes/VisualMiddle3D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/BuilderModes/VisualModes/VisualMiddle3D.cs b/Source/Plugins/BuilderModes/VisualModes/VisualMiddle3D.cs index 27cddea4..2ac61550 100644 --- a/Source/Plugins/BuilderModes/VisualModes/VisualMiddle3D.cs +++ b/Source/Plugins/BuilderModes/VisualModes/VisualMiddle3D.cs @@ -222,7 +222,7 @@ namespace CodeImp.DoomBuilder.BuilderModes foreach(Effect3DFloor ef in sd.ExtraFloors) { //mxd. Walls of solid 3D floors shouldn't be clipped by translucent 3D floors - if(extrafloor.RenderInside || (!extrafloor.RenderInside && !ef.RenderInside)){ + if(extrafloor.Alpha < 255 || (!extrafloor.RenderInside && !ef.RenderInside && extrafloor.Alpha == 255 & ef.Alpha == 255)) { int num = polygons.Count; for(int pi = 0; pi < num; pi++) {