From 215f5270f69521912f22b0066060a5f85c8b0660 Mon Sep 17 00:00:00 2001 From: Verkister Date: Thu, 23 Jul 2020 13:22:53 +0300 Subject: [PATCH] Fixes table/bench icon connections. - Fixes roundstart/spawned complete tables not connecting to adjacent frames or other types. - Fixes table frames connecting into adjacent benches. --- code/modules/tables/tables.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/tables/tables.dm b/code/modules/tables/tables.dm index 9f08123b35..a2a617e477 100644 --- a/code/modules/tables/tables.dm +++ b/code/modules/tables/tables.dm @@ -323,6 +323,15 @@ qdel(src) return shards +/obj/structure/table/can_visually_connect_to(var/obj/structure/S) + if(istype(S,/obj/structure/table/bench) && !istype(src,/obj/structure/table/bench)) + return FALSE + if(istype(src,/obj/structure/table/bench) && !istype(S,/obj/structure/table/bench)) + return FALSE + if(istype(S,/obj/structure/table)) + return TRUE + ..() + /obj/structure/table/update_icon() if(flipped != 1) icon_state = "blank"