From c031008eab4d44bf2c9113630c331b53e740b798 Mon Sep 17 00:00:00 2001
From: MascaraSnake <jonassauer27@gmail.com>
Date: Sat, 18 Apr 2020 15:17:25 +0200
Subject: [PATCH] Enable SF_TRIGGERSPECIAL_TOUCH for sectors with spike damage

---
 src/p_spec.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/p_spec.c b/src/p_spec.c
index 728bacab1e..32e4f111c6 100644
--- a/src/p_spec.c
+++ b/src/p_spec.c
@@ -6363,6 +6363,12 @@ void P_SpawnSpecials(boolean fromnetsave)
 		// Process Section 1
 		switch(GETSECSPECIAL(sector->special, 1))
 		{
+			case 5: // Spikes
+				//Terrible hack to replace an even worse hack:
+				//Spike damage automatically sets SF_TRIGGERSPECIAL_TOUCH.
+				//Yes, this also affects other specials on the same sector. Sorry.
+				sector->flags |= SF_TRIGGERSPECIAL_TOUCH;
+				break;
 			case 15: // Bouncy sector
 				CheckForBouncySector = true;
 				break;
-- 
GitLab