Added comment

For whoever comes across this code and wonders what am I doing.
This commit is contained in:
Carlen White
2019-05-22 09:32:25 -04:00
committed by GitHub
parent bb2a8bdd59
commit 1bddf2d5ae
+1
View File
@@ -23,6 +23,7 @@
/mob/proc/print_flavor_text()
if(flavor_text && flavor_text != "")
// We are decoding and then encoding to not only get correct amount of characters, but also to prevent partial escaping characters being shown.
var/msg = html_decode(replacetext(flavor_text, "\n", " "))
if(lentext(msg) <= 40)
return "<span class='notice'>[html_encode(msg)]</span>"