mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #7402 Properly check for entrance location before disconnecting paths
This commit is contained in:
parent
a1e0e63633
commit
99d8c83807
|
@ -15,7 +15,8 @@
|
|||
- Fix: [#7176] Mechanics sometimes fall down from rides.
|
||||
- Fix: [#7303] Visual glitch with virtual floor near map edges.
|
||||
- Fix: [#7327] Abstract scenery and stations don't get fully See-Through when hiding them (original bug).
|
||||
- Fix: [#7382] Opening the mini-map reverts the size of the land tool to 1x1, regardless of what was selected before.
|
||||
- Fix: [#7382] Opening the mini-map reverts the size of the land tool to 1x1, regardless of what was selected before.
|
||||
- Fix: [#7402] Edges of neigbouring footpaths stay connected after removing a path that's underneath a ride entrance.
|
||||
- Fix: Cut-away view does not draw tile elements that have been moved down on the list.
|
||||
- Improved: [#2989] Multiplayer window now changes title when tab changes.
|
||||
- Improved: [#5339] Change eyedropper icon to actual eyedropper and change cursor to crosshair.
|
||||
|
|
|
@ -2299,15 +2299,21 @@ static bool tile_element_wants_path_connection_towards(TileCoordsXYZD coords, co
|
|||
uint16 dx = ((coords.direction - tile_element_get_direction(tileElement)) & TILE_ELEMENT_DIRECTION_MASK);
|
||||
if (FlatRideTrackSequenceProperties[trackType][trackSequence] & (1 << dx))
|
||||
{
|
||||
// Track element has the flags required for
|
||||
// Track element has the flags required for the given direction
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case TILE_ELEMENT_TYPE_ENTRANCE:
|
||||
if (entrance_has_direction(tileElement, coords.direction - tile_element_get_direction(tileElement)))
|
||||
return true;
|
||||
if (tileElement->base_height == coords.z)
|
||||
{
|
||||
if (entrance_has_direction(tileElement, coords.direction - tile_element_get_direction(tileElement)))
|
||||
{
|
||||
// Entrance wants to be connected towards the given direction
|
||||
return true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue