1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Refactor ride name to dynamic args and std::string

This commit is contained in:
Ted John
2019-07-20 19:43:02 +01:00
parent 3ee7824df4
commit 6fff2079f9
22 changed files with 154 additions and 232 deletions

View File

@@ -141,11 +141,10 @@ static int32_t cc_rides(InteractiveConsole& console, const arguments_t& argv)
int32_t i;
FOR_ALL_RIDES (i, ride)
{
char name[128];
format_string(name, 128, ride->name, &ride->name_arguments);
auto name = ride->GetName();
console.WriteFormatLine(
"ride: %03d type: %02u subtype %03u operating mode: %02u name: %s", i, ride->type, ride->subtype,
ride->mode, name);
ride->mode, name.c_str());
}
}
else if (argv[0] == "set")