mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 18:02:37 +01:00
Codechange: Pass raw string to editable query window. (#13481)
This avoids separating string id and parameters. EncodedString is not needed as it is the raw text that is editable.
This commit is contained in:
@@ -424,15 +424,6 @@ Textbuf::~Textbuf()
|
||||
free(this->buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a string into the textbuffer.
|
||||
* @param string String
|
||||
*/
|
||||
void Textbuf::Assign(StringID string)
|
||||
{
|
||||
this->Assign(GetString(string));
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy a string into the textbuffer.
|
||||
* @param text Source.
|
||||
|
||||
Reference in New Issue
Block a user