Use StringBuilder for GetString/GetStringWithArgs, as per upstream

Update dependent code as required
This commit is contained in:
Jonathan G Rennison
2024-01-05 21:12:54 +00:00
parent 1b7a5372ec
commit f034714559
61 changed files with 1064 additions and 1228 deletions

View File

@@ -53,9 +53,8 @@ void CcGiveMoney(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2
if (result.Failed() || !_settings_game.economy.give_money || !_networking) return;
/* Inform the company of the action of one of its clients (controllers). */
char msg[64];
SetDParam(0, p1);
GetString(msg, STR_COMPANY_NAME, lastof(msg));
std::string msg = GetString(STR_COMPANY_NAME);
/*
* bits 31-16: source company