From 82b08a5266d66e28d0e60e655b6272a21cea5274 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sat, 25 Jul 2020 11:27:29 +0300 Subject: [PATCH] Earlyports table/bench fix Polaris being slow --- 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 80ab93043b..2857d022a9 100644 --- a/code/modules/tables/tables.dm +++ b/code/modules/tables/tables.dm @@ -328,6 +328,15 @@ var/list/table_icon_cache = list() 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 + ..() + /proc/get_table_image(var/icon/ticon,var/ticonstate,var/tdir,var/tcolor,var/talpha) var/icon_cache_key = "\ref[ticon]-[ticonstate]-[tdir]-[tcolor]-[talpha]" var/image/I = table_icon_cache[icon_cache_key]