From 17873819b3269183b0eb1d5ff81d6caab6cd7a20 Mon Sep 17 00:00:00 2001 From: oranges Date: Wed, 1 Nov 2017 15:19:14 +1300 Subject: [PATCH] Adds a temporary workaround for a BYOND bug --- code/datums/components/_component.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/datums/components/_component.dm b/code/datums/components/_component.dm index 4e187a6a08..eac7cf2161 100644 --- a/code/datums/components/_component.dm +++ b/code/datums/components/_component.dm @@ -133,8 +133,20 @@ set waitfor = FALSE return +<<<<<<< HEAD /datum/component/proc/_GetInverseTypeList(current_type) . = list(current_type) +======= +/datum/component/proc/_GetInverseTypeList(our_type = type) +#if DM_VERSION > 511 +#warning Remove this hack for http://www.byond.com/forum/?post=73469 +#endif + set invisibility = 101 + //we can do this one simple trick + var/current_type = parent_type + . = list(our_type, current_type) + //and since most components are root level + 1, this won't even have to run +>>>>>>> 828ff86... Merge pull request #32307 from tgstation/Cyberboss-patch-1 while (current_type != /datum/component) current_type = type2parent(current_type) . += current_type