mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Fixes the dreaded examine bug
This commit is contained in:
@@ -1136,7 +1136,8 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0
|
|||||||
if (!isicon(I))
|
if (!isicon(I))
|
||||||
if (isfile(thing)) //special snowflake
|
if (isfile(thing)) //special snowflake
|
||||||
var/name = sanitize_filename("[generate_asset_name(thing)].png")
|
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)
|
for (var/thing2 in targets)
|
||||||
send_asset(thing2, key)
|
send_asset(thing2, key)
|
||||||
return "<img class='icon icon-misc' src=\"[url_encode(name)]\">"
|
return "<img class='icon icon-misc' src=\"[url_encode(name)]\">"
|
||||||
@@ -1160,7 +1161,8 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0
|
|||||||
I = icon(I, icon_state, dir, frame, moving)
|
I = icon(I, icon_state, dir, frame, moving)
|
||||||
|
|
||||||
key = "[generate_asset_name(I)].png"
|
key = "[generate_asset_name(I)].png"
|
||||||
register_asset(key, I)
|
if(!SSassets.cache[key])
|
||||||
|
register_asset(key, I)
|
||||||
for (var/thing2 in targets)
|
for (var/thing2 in targets)
|
||||||
send_asset(thing2, key)
|
send_asset(thing2, key)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user