forked from rosebudai/OpenRCT2-Web
Refactor viewport interaction flags and add plugin API
This commit is contained in:
1 parent
27013d147a
commit
762b6ee816
18 files changed
+113
-75
No files matched your search
@@ -655,7 +655,7 @@ static int32_t cc_get(InteractiveConsole& console, const arguments_t& argv)
|
||||
{
|
||||
rct_viewport* viewport = window_get_viewport(w);
|
||||
auto info = get_map_coordinates_from_pos(
|
||||
{ viewport->view_width / 2, viewport->view_height / 2 }, VIEWPORT_INTERACTION_MASK_TERRAIN);
|
||||
{ viewport->view_width / 2, viewport->view_height / 2 }, EnumsToFlags(ViewportInteractionItem::Terrain));
|
||||
|
||||
auto tileMapCoord = TileCoordsXY(info.Loc);
|
||||
console.WriteFormatLine("location %d %d", tileMapCoord.x, tileMapCoord.y);
|
||||
|
||||
Reference in new issue
Block a user