1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Move game command calls to a single call site

This commit is contained in:
duncanspumpkin
2019-02-22 09:32:23 +00:00
parent 5b0367ea0e
commit d5ad6b7b0f
5 changed files with 21 additions and 25 deletions

View File

@@ -186,9 +186,7 @@ static int32_t cc_rides(InteractiveConsole& console, const arguments_t& argv)
}
else
{
gGameCommandErrorTitle = STR_CANT_CHANGE_OPERATING_MODE;
int32_t res = game_do_command(
0, (type << 8) | 1, 0, (RIDE_SETTING_RIDE_TYPE << 8) | ride_index, GAME_COMMAND_SET_RIDE_SETTING, 0, 0);
int32_t res = set_operating_setting(ride_index, RIDE_SETTING_RIDE_TYPE, type, GAME_COMMAND_FLAG_APPLY);
if (res == MONEY32_UNDEFINED)
{
console.WriteFormatLine("That didn't work");