Fix double-encode in AI shuttle call reasons (#88245)

## About The Pull Request

This fixes double html encoding with AI shuttle calls, due to
`tgui_input_text` being called without setting `encode = FALSE` -
`SSshuttle.requestEvac` expects unencoded text.

I added documentation to `SSshuttle.requestEvac`, including clarifying
that it expects non-html-encoded text.

## Why It's Good For The Game

&​#​39;​ is annoying

## Changelog
🆑
fix: Fixed double-encoded messages with AI shuttle call reasons.
/🆑
This commit is contained in:
Lucy
2024-11-29 04:28:46 +01:00
committed by GitHub
parent 6d423d29d9
commit a17ad68508
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -356,6 +356,13 @@ SUBSYSTEM_DEF(shuttle)
return TRUE
/**
* Calls the emergency shuttle.
*
* Arguments:
* * user - The mob that called the shuttle.
* * call_reason - The reason the shuttle was called, which should be non-html-encoded text.
*/
/datum/controller/subsystem/shuttle/proc/requestEvac(mob/user, call_reason)
if (!check_backup_emergency_shuttle())
return
+1
View File
@@ -350,6 +350,7 @@
"What is the nature of your emergency? ([CALL_SHUTTLE_REASON_LENGTH] characters required.)",
"Confirm Shuttle Call",
max_length = MAX_MESSAGE_LEN,
encode = FALSE,
)
if(incapacitated)