Don't render always intangible & invisible FOFs, fix half light blocks

This commit is contained in:
spherallic 2023-06-28 15:30:40 +02:00
parent d652c04e79
commit 97b7fdbd29

View file

@ -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":