From 66cbdd117418223a4d53611699647e4c6b51f2c0 Mon Sep 17 00:00:00 2001 From: Artur Date: Mon, 22 Jun 2020 17:25:40 +0300 Subject: [PATCH] Fixes the dreaded examine bug --- code/__HELPERS/icons.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/icons.dm b/code/__HELPERS/icons.dm index 62876316f9..9391834552 100644 --- a/code/__HELPERS/icons.dm +++ b/code/__HELPERS/icons.dm @@ -1136,7 +1136,8 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0 if (!isicon(I)) if (isfile(thing)) //special snowflake var/name = sanitize_filename("[generate_asset_name(thing)].png") - register_asset(name, thing) + if (!SSassets.cache[name]) + register_asset(name, thing) for (var/thing2 in targets) send_asset(thing2, key) return "" @@ -1160,7 +1161,8 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0 I = icon(I, icon_state, dir, frame, moving) key = "[generate_asset_name(I)].png" - register_asset(key, I) + if(!SSassets.cache[key]) + register_asset(key, I) for (var/thing2 in targets) send_asset(thing2, key)