mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
Replace mapElement with tileElement
This commit is contained in:
@@ -169,9 +169,9 @@ static LocationXY16 get_location()
|
||||
rct_window *w = window_get_main();
|
||||
if (w != nullptr) {
|
||||
sint32 interactionType;
|
||||
rct_tile_element *mapElement;
|
||||
rct_tile_element *tileElement;
|
||||
|
||||
get_map_coordinates_from_pos_window(w, w->viewport->view_width / 2, w->viewport->view_height / 2, VIEWPORT_INTERACTION_MASK_TERRAIN, &mapCoord.x, &mapCoord.y, &interactionType, &mapElement, nullptr);
|
||||
get_map_coordinates_from_pos_window(w, w->viewport->view_width / 2, w->viewport->view_height / 2, VIEWPORT_INTERACTION_MASK_TERRAIN, &mapCoord.x, &mapCoord.y, &interactionType, &tileElement, nullptr);
|
||||
mapCoord.x -= 16;
|
||||
mapCoord.x /= 32;
|
||||
mapCoord.y -= 16;
|
||||
|
||||
Reference in New Issue
Block a user