mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 00:54:16 +01:00
use ref. if really needed (#19518)
* use ref. if really needed * replace browse_rsc with the macro for it
This commit is contained in:
@@ -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]"
|
||||
|
||||
Reference in New Issue
Block a user