mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user