1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Remove some C-style tile element functions

This commit is contained in:
Michael Steenbeek
2018-09-14 11:14:19 +02:00
committed by Gymnasiast
parent 2d8b93e514
commit 1d3baef9b7
31 changed files with 138 additions and 168 deletions

View File

@@ -518,7 +518,7 @@ static void viewport_interaction_remove_footpath_item(rct_tile_element* tileElem
*/
void viewport_interaction_remove_park_entrance(rct_tile_element* tileElement, int32_t x, int32_t y)
{
int32_t rotation = tile_element_get_direction_with_offset(tileElement, 1);
int32_t rotation = tileElement->GetDirectionWithOffset(1);
switch (tileElement->properties.entrance.index & 0x0F)
{
case 1:
@@ -570,7 +570,7 @@ static void viewport_interaction_remove_large_scenery(rct_tile_element* tileElem
{
gGameCommandErrorTitle = STR_CANT_REMOVE_THIS;
game_do_command(
x, 1 | (tile_element_get_direction(tileElement) << 8), y,
x, 1 | (tileElement->GetDirection() << 8), y,
tileElement->base_height | (scenery_large_get_sequence(tileElement) << 8), GAME_COMMAND_REMOVE_LARGE_SCENERY, 0, 0);
}
}