mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Implement #6307: Display arrow on park entrance placement
This commit is contained in:
committed by
Michael Steenbeek
parent
3125956b77
commit
9425ed1aee
@@ -1245,6 +1245,7 @@ static void window_map_place_park_entrance_tool_update(sint32 x, sint32 y)
|
||||
map_invalidate_selection_rect();
|
||||
map_invalidate_map_selection_tiles();
|
||||
gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE;
|
||||
gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_ARROW;
|
||||
gMapSelectFlags &= ~MAP_SELECT_FLAG_ENABLE_CONSTRUCT;
|
||||
place_park_entrance_get_map_position(x, y, &mapX, &mapY, &mapZ, &direction);
|
||||
if (mapX == (sint16)-1) {
|
||||
@@ -1262,7 +1263,12 @@ static void window_map_place_park_entrance_tool_update(sint32 x, sint32 y)
|
||||
gMapSelectionTiles[3].x = -1;
|
||||
gMapSelectionTiles[3].y = -1;
|
||||
|
||||
gMapSelectFlags |= MAP_SELECT_FLAG_ENABLE_CONSTRUCT;
|
||||
gMapSelectArrowPosition.x = mapX;
|
||||
gMapSelectArrowPosition.y = mapY;
|
||||
gMapSelectArrowPosition.z = mapZ * 16;
|
||||
gMapSelectArrowDirection = direction;
|
||||
|
||||
gMapSelectFlags |= MAP_SELECT_FLAG_ENABLE_CONSTRUCT | MAP_SELECT_FLAG_ENABLE_ARROW;
|
||||
map_invalidate_map_selection_tiles();
|
||||
if (
|
||||
gParkEntranceGhostExists &&
|
||||
|
||||
Reference in New Issue
Block a user