1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

refactor wallRemoveAction

This commit is contained in:
0cufox0
2019-07-06 21:26:58 +03:00
committed by duncanspumpkin
parent 7730b35d82
commit 0320f195e3
7 changed files with 19 additions and 19 deletions

View File

@@ -1755,7 +1755,7 @@ static void clear_element_at(int32_t x, int32_t y, TileElement** elementPtr)
}
case TILE_ELEMENT_TYPE_WALL:
{
TileCoordsXYZD wallLocation = { x >> 5, y >> 5, element->base_height, element->GetDirection() };
CoordsXYZD wallLocation = { x, y, element->base_height, element->GetDirection() };
auto wallRemoveAction = WallRemoveAction(wallLocation);
GameActions::Execute(&wallRemoveAction);
}