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

Refactor viewport interaction flags and add plugin API

This commit is contained in:
Ted John
2021-02-10 01:06:18 +00:00
parent 27013d147a
commit 762b6ee816
18 changed files with 113 additions and 75 deletions

View File

@@ -172,7 +172,7 @@ static TileCoordsXY get_location()
if (w != nullptr)
{
auto info = get_map_coordinates_from_pos_window(
w, { w->viewport->view_width / 2, w->viewport->view_height / 2 }, VIEWPORT_INTERACTION_MASK_TERRAIN);
w, { w->viewport->view_width / 2, w->viewport->view_height / 2 }, EnumsToFlags(ViewportInteractionItem::Terrain));
auto mapCoord = info.Loc;
mapCoord.x -= 16;
mapCoord.y -= 16;