Fix #14415: Entrances/exits are removed when built on top of each other (#14490)

This commit is contained in:
Adam 2021-05-23 07:41:34 -06:00 committed by GitHub
parent 38c7a70025
commit dbd84f9f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@
- Fix: [#13986] OpenGL: Track preview window, flip/rotate button do not update the thumbnail.
- Fix: [#14315] Crash when trying to rename Air Powered Vertical Coaster in Korean.
- Fix: [#14330] join_server uses default_port from config.
- Fix: [#14415] Entrances/exits are removed when built on top of each other.
- Fix: [#14449] Surface smoothing at extra zoom levels not working.
- Fix: [#14468] Cannot close Options window on Android.
- Fix: [#14493] [Plugin] isHidden only works for tile elements up to the first element with a base height of over 32.

View File

@ -6671,6 +6671,8 @@ void sub_6CB945(Ride* ride)
{
if (tileElement->GetType() != TILE_ELEMENT_TYPE_ENTRANCE)
continue;
if (tileElement->base_height != locationCoords.z)
continue;
if (tileElement->AsEntrance()->GetRideIndex() != ride->id)
continue;
if (tileElement->AsEntrance()->GetEntranceType() > ENTRANCE_TYPE_RIDE_EXIT)