1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Refactor out references to compatibility function wall_remove

This commit is contained in:
ZehMatt
2018-04-22 19:11:06 +02:00
committed by Aaron van Geffen
parent 8cb76cd969
commit 5e4cdeb78b
6 changed files with 39 additions and 39 deletions

View File

@@ -3761,8 +3761,10 @@ static void clear_element_at(sint32 x, sint32 y, rct_tile_element **elementPtr)
viewport_interaction_remove_park_entrance(element, x, y);
break;
case TILE_ELEMENT_TYPE_WALL:
gGameCommandErrorTitle = STR_CANT_REMOVE_THIS;
wall_remove(x, y, tile_element_get_direction(element), element->base_height, GAME_COMMAND_FLAG_APPLY);
{
auto wallRemoveAction = WallRemoveAction(x, y, element->base_height, tile_element_get_direction(element));
GameActions::Execute(&wallRemoveAction);
}
break;
case TILE_ELEMENT_TYPE_LARGE_SCENERY:
gGameCommandErrorTitle = STR_CANT_REMOVE_THIS;