Fixes paper missing write links

This commit is contained in:
atermonera
2022-02-19 15:35:30 -08:00
parent 191fb67f8f
commit 6efdf7f1fd
+3 -3
View File
@@ -113,7 +113,6 @@
name = title
if(istext(text))
info = text
addtimer(CALLBACK(src, .proc/update_info), 0)
if(mapload) // Jank, but we do this to prevent maploaded papers from somehow stacking across rounds if re-added to the board by a player.
was_maploaded = TRUE
@@ -121,12 +120,13 @@
pixel_y = rand(-8, 8)
pixel_x = rand(-9, 9)
stamps = ""
addtimer(CALLBACK(src, .proc/update_info, FALSE), 0)
/obj/item/weapon/paper/proc/update_info()
/obj/item/weapon/paper/proc/update_info(var/sanitize = TRUE)
if(name != "paper")
desc = "This is a paper titled '" + name + "'."
if(info != initial(info))
if(info != initial(info) && sanitize)
info = html_encode(info)
info = replacetext(info, "\n", "<BR>")
info = parsepencode(info)