Fix last words being double-encoded when done from the alert popup (#81386)

## About The Pull Request

Fixes succumb last words, when typed in the tgui input popup, being
double-encoded/sanitized, resulting in things like this:

Upstream port of
https://github.com/Monkestation/Monkestation2.0/pull/1182

## Why It's Good For The Game

This bug is annoying and makes text uglier and less readable. Also, bugs
are bad. Do I even need to fill this part out for a blatant bugfix?
This commit is contained in:
Lucy
2024-02-10 15:50:24 -06:00
committed by GitHub
parent afb29836a7
commit 938df27f59
+1 -1
View File
@@ -464,7 +464,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion."
var/mob/living/living_owner = owner
var/last_whisper
if(!HAS_TRAIT(living_owner, TRAIT_SUCCUMB_OVERRIDE))
last_whisper = tgui_input_text(usr, "Do you have any last words?", "Goodnight, Sweet Prince")
last_whisper = tgui_input_text(usr, "Do you have any last words?", "Goodnight, Sweet Prince", encode = FALSE) // saycode already handles sanitization
if(isnull(last_whisper))
if(!HAS_TRAIT(living_owner, TRAIT_SUCCUMB_OVERRIDE))
return