1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Start refactoring pathfinding to use tileCoords

This commit is contained in:
duncanspumpkin
2018-04-18 19:34:34 +01:00
parent d15c782ca7
commit fcb66b7449
26 changed files with 262 additions and 248 deletions

View File

@@ -491,12 +491,12 @@ void viewport_interaction_remove_park_entrance(rct_tile_element *tileElement, si
sint32 rotation = tile_element_get_direction_with_offset(tileElement, 1);
switch (tileElement->properties.entrance.index & 0x0F) {
case 1:
x += TileDirectionDelta[rotation].x;
y += TileDirectionDelta[rotation].y;
x += CoordsDirectionDelta[rotation].x;
y += CoordsDirectionDelta[rotation].y;
break;
case 2:
x -= TileDirectionDelta[rotation].x;
y -= TileDirectionDelta[rotation].y;
x -= CoordsDirectionDelta[rotation].x;
y -= CoordsDirectionDelta[rotation].y;
break;
}
gGameCommandErrorTitle = STR_CANT_REMOVE_THIS;