1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Implement #6307: Display arrow on park entrance placement

This commit is contained in:
Robert Jordan
2017-11-01 13:14:01 -04:00
committed by Michael Steenbeek
parent 3125956b77
commit 9425ed1aee
2 changed files with 8 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
- Feature: [#6290] Arabic translation (experimental).
- Feature: [#6292] Allow building queue lines in the Scenario Editor.
- Feature: [#6295] TrueType fonts are now rendered with light font hinting by default.
- Feature: [#6307] Arrows are now shown when placing park entrances.
- Feature: [#6324] Add command to deselect unused objects from the object selection.
- Feature: [#6325] Allow using g1.dat from RCT Classic.
- Feature: [#6353] Show custom RCT1 scenarios in New Scenario window.

View File

@@ -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 &&