From 147ec157fa446c7816a846eece8a71d8a02c35f4 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 6 Sep 2020 05:14:36 +0200 Subject: [PATCH] [MIRROR] Removes icons on alt click -- Intended to be temporary (#648) * Removes icons on alt-click (#53447) * Removes icons on alt click -- Intended to be temporary Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com> --- code/controllers/subsystem/statpanel.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/controllers/subsystem/statpanel.dm b/code/controllers/subsystem/statpanel.dm index f218111d0e3..b887573c170 100644 --- a/code/controllers/subsystem/statpanel.dm +++ b/code/controllers/subsystem/statpanel.dm @@ -94,7 +94,7 @@ SUBSYSTEM_DEF(statpanels) if(!target_image.loc || target_image.loc.loc != target_mob.listed_turf || !target_image.override) continue overrides += target_image.loc - turfitems[++turfitems.len] = list("[target_mob.listed_turf]", REF(target_mob.listed_turf), costly_icon2html(target_mob.listed_turf, target, sourceonly=TRUE)) + turfitems[++turfitems.len] = list("[target_mob.listed_turf]", REF(target_mob.listed_turf)) for(var/tc in target_mob.listed_turf) var/atom/movable/turf_content = tc if(turf_content.mouse_opacity == MOUSE_OPACITY_TRANSPARENT) @@ -105,10 +105,7 @@ SUBSYSTEM_DEF(statpanels) continue if(turf_content.IsObscured()) continue - if(length(turfitems) < 30) // only create images for the first 30 items on the turf, for performance reasons - turfitems[++turfitems.len] = list("[turf_content.name]", REF(turf_content), costly_icon2html(turf_content, target, sourceonly=TRUE)) - else - turfitems[++turfitems.len] = list("[turf_content.name]", REF(turf_content)) + turfitems[++turfitems.len] = list("[turf_content.name]", REF(turf_content)) turfitems = url_encode(json_encode(turfitems)) target << output("[turfitems];", "statbrowser:update_listedturf") if(MC_TICK_CHECK)