From fdb46e5d14f78df255c02df953790b963b8c61fd Mon Sep 17 00:00:00 2001
From: MascaraSnake <jonassauer27@gmail.com>
Date: Tue, 14 Apr 2020 09:06:02 +0200
Subject: [PATCH] Implement FOF types 202 and 223

---
 extras/conf/udb/Includes/SRB222_linedefs.cfg | 22 ++++++++++++++++++++
 src/p_setup.c                                |  4 ++++
 2 files changed, 26 insertions(+)

diff --git a/extras/conf/udb/Includes/SRB222_linedefs.cfg b/extras/conf/udb/Includes/SRB222_linedefs.cfg
index e7d7b4337d..1bd5055e2a 100644
--- a/extras/conf/udb/Includes/SRB222_linedefs.cfg
+++ b/extras/conf/udb/Includes/SRB222_linedefs.cfg
@@ -1601,6 +1601,28 @@ udmf
 		}
 	}
 
+	202
+	{
+		title = "Fog Block";
+		prefix = "(202);
+		arg0
+		{
+			title = "Target sector tag";
+			type = 13;
+		}
+	}
+
+	223
+	{
+		title = "Intangible, Invisible";
+		prefix = "(223);
+		arg0
+		{
+			title = "Target sector tag";
+			type = 13;
+		}
+	}
+
 	linedefexecmisc
 	{
 		title = "Linedef Executor (misc.)";
diff --git a/src/p_setup.c b/src/p_setup.c
index 4379425df2..cf5dbcbc79 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -2927,6 +2927,10 @@ static void P_ConvertBinaryMap(void)
 				lines[i].args[1] = 1;
 			lines[i].special = 200;
 			break;
+		case 202: //FOF: Fog block
+		case 223: //FOF: Intangible, invisible
+			lines[i].args[0] = lines[i].tag;
+			break;
 		case 443: //Call Lua function
 			if (lines[i].text)
 			{
-- 
GitLab