forked from mirror/OpenTTD
Codechange: Pass encoded script strings as EncodedString.
This removes the ambiguity of having std::strings that may or may not be encoded.
This commit is contained in:
@@ -3115,7 +3115,7 @@ CommandCost CmdTownCargoGoal(DoCommandFlags flags, TownID town_id, TownAcceptanc
|
||||
* @param text The new text (empty to remove the text).
|
||||
* @return Empty cost or an error.
|
||||
*/
|
||||
CommandCost CmdTownSetText(DoCommandFlags flags, TownID town_id, const std::string &text)
|
||||
CommandCost CmdTownSetText(DoCommandFlags flags, TownID town_id, const EncodedString &text)
|
||||
{
|
||||
if (_current_company != OWNER_DEITY) return CMD_ERROR;
|
||||
Town *t = Town::GetIfValid(town_id);
|
||||
|
Reference in New Issue
Block a user