use ref. if really needed (#19518)

* use ref. if really needed

* replace browse_rsc with the macro for it
This commit is contained in:
Kashargul
2026-06-20 21:50:43 +02:00
committed by GitHub
parent 4a1efa8f22
commit 9cb6b2ec55
16 changed files with 52 additions and 52 deletions
@@ -47,7 +47,7 @@
var/icon/icon_value = icon(value)
var/rnd = rand(1,10000)
var/rname = "tmp[REF(icon_value)][rnd].png"
usr << browse_rsc(icon_value, rname)
send_rsc(usr, icon_value, rname)
return "(" + span_value("[value]") + ") <img class=icon src=\"[rname]\">"
#else
return "/icon (" + span_value("[value]") + ")"
@@ -73,7 +73,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(debug_variables, (R_DEBUG|R_SERVER|R_ADMIN|R_SPAWN|R
var/sprite_text
if(sprite)
hash = md5(sprite)
src << browse_rsc(sprite, "vv[hash].png")
send_rsc(src, sprite, "vv[hash].png")
sprite_text = no_icon ? "\[NO ICON\]" : "<img src='vv[hash].png'></td><td>"
title = "[thing] ([REF(thing)]) = [type]"