From 1bddf2d5ae677a83845871be0c556bf6340a366f Mon Sep 17 00:00:00 2001 From: Carlen White Date: Wed, 22 May 2019 09:32:25 -0400 Subject: [PATCH] Added comment For whoever comes across this code and wonders what am I doing. --- code/modules/mob/say_vr.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/say_vr.dm b/code/modules/mob/say_vr.dm index 158aabc80a..6cc0ca185f 100644 --- a/code/modules/mob/say_vr.dm +++ b/code/modules/mob/say_vr.dm @@ -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 "[html_encode(msg)]"