mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 06:40:08 +01:00
[MIRROR] use ref. if really needed (#12828)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
85e42a533a
commit
66e5f3ee5c
@@ -131,7 +131,7 @@
|
||||
user << browse(dat, "window=[name]")
|
||||
else if(istype(pages[page], /obj/item/photo))
|
||||
var/obj/item/photo/P = W
|
||||
user << browse_rsc(P.img, "tmp_photo.png")
|
||||
send_rsc(user, P.img, "tmp_photo.png")
|
||||
user << browse("<html>" + dat + "<head><title>[P.name]</title></head>" \
|
||||
+ "<body style='overflow:hidden'>" \
|
||||
+ "<div> <img src='tmp_photo.png' width = '180'" \
|
||||
|
||||
@@ -65,7 +65,7 @@ GLOBAL_VAR_INIT(photo_count, 0)
|
||||
return list(span_notice("It is too far away to examine."))
|
||||
|
||||
/obj/item/photo/proc/show(mob/user as mob)
|
||||
user << browse_rsc(img, "tmp_photo_[id].png")
|
||||
send_rsc(user, img, "tmp_photo_[id].png")
|
||||
user << browse("<html><head><title>[name]</title></head>" \
|
||||
+ "<body style='overflow:hidden;margin:0;text-align:center'>" \
|
||||
+ "<img src='tmp_photo_[id].png' width='[64*photo_size]' style='-ms-interpolation-mode:nearest-neighbor' />" \
|
||||
|
||||
Reference in New Issue
Block a user