From 97b7fdbd29472e0138de5d5e5265cbe6e68fc6d6 Mon Sep 17 00:00:00 2001 From: spherallic Date: Wed, 28 Jun 2023 15:30:40 +0200 Subject: [PATCH] Don't render always intangible & invisible FOFs, fix half light blocks --- Source/Plugins/BuilderModes/VisualModes/Effect3DFloor.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/BuilderModes/VisualModes/Effect3DFloor.cs b/Source/Plugins/BuilderModes/VisualModes/Effect3DFloor.cs index 7c1e2371..6fa5d8ea 100755 --- a/Source/Plugins/BuilderModes/VisualModes/Effect3DFloor.cs +++ b/Source/Plugins/BuilderModes/VisualModes/Effect3DFloor.cs @@ -136,6 +136,10 @@ namespace CodeImp.DoomBuilder.BuilderModes alpha = General.Clamp(linedef.Args[1], 0, 255); renderinside = (linedef.Args[3] & 7) != 0; break; + case "srb2_foflight": + case "srb2_fofintangibleinvisible": + alpha = 0; + break; case "srb2_fofintangible": alpha = General.Clamp(linedef.Args[1], 0, 255); renderinside = (linedef.Args[3] & 4) != 4; @@ -220,7 +224,7 @@ namespace CodeImp.DoomBuilder.BuilderModes disablelighting = (linedef.Args[4] & 1) == 1; break; case "srb2_foflight": - restrictlighting = linedef.Args[1] != 0; + restrictlighting = linedef.Args[1] == 0; break; case "srb2_foffog": case "srb2_fofintangibleinvisible":