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

Added Get button to command editor

This commit is contained in:
Robert Jordan
2015-06-25 14:27:09 -04:00
parent 92a31a0fd7
commit 31e8e604fe
3 changed files with 44 additions and 2 deletions

View File

@@ -516,7 +516,6 @@ static int cc_get(const char **argv, int argc)
int interactionType;
rct_map_element *mapElement;
rct_xy16 mapCoord = { 0 };
get_map_coordinates_from_pos(w->viewport->view_width / 2, w->viewport->view_height / 2, VIEWPORT_INTERACTION_MASK_TERRAIN, &mapCoord.x, &mapCoord.y, &interactionType, &mapElement, NULL);
mapCoord.x -= 16;
mapCoord.x /= 32;