mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Add: AppendStringInPlace() to append translated string ID into an existing string. (#12969)
This allows avoiding a string copy when building strings.
This commit is contained in:
@@ -61,6 +61,7 @@ inline StringID MakeStringID(StringTab tab, uint index)
|
||||
|
||||
std::string GetString(StringID string);
|
||||
const char *GetStringPtr(StringID string);
|
||||
void AppendStringInPlace(std::string &result, StringID string);
|
||||
|
||||
uint ConvertKmhishSpeedToDisplaySpeed(uint speed, VehicleType type);
|
||||
uint ConvertDisplaySpeedToKmhishSpeed(uint speed, VehicleType type);
|
||||
|
||||
Reference in New Issue
Block a user