From 3313590784842688068f8787edbd2a1511d34fe0 Mon Sep 17 00:00:00 2001 From: ZehMatt Date: Fri, 28 Jul 2017 10:56:04 +0200 Subject: [PATCH] Fix #6052: Unable to place entrance/exit on certain ride types. --- distribution/changelog.txt | 1 + src/openrct2/ride/track.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 429691286e..abc8878a32 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -22,6 +22,7 @@ - Fix: [#5984] Allow socket binding to same port after crash - Fix: [#5998] Staff not getting paid / no loan interest. - Fix: [#6026] 'Select ride to advertise' dropdown does not display all items. +- Fix: [#6052] Unable to place entrance/exit on certain ride types. - Improved: [#4301] Leading and trailing whitespace in player name is now removed. - Improved: [#5859] OpenGL rendering performance - Improved: [#5863] Switching drawing engines no longer requires the application to restart. diff --git a/src/openrct2/ride/track.c b/src/openrct2/ride/track.c index 87a57c0bc1..7bbce30b58 100644 --- a/src/openrct2/ride/track.c +++ b/src/openrct2/ride/track.c @@ -1632,8 +1632,8 @@ static money32 track_remove(uint8 type, uint8 sequence, sint16 originX, sint16 o footpath_remove_edges_at(x, y, mapElement); } map_element_remove(mapElement); - sub_6CB945(rideIndex); - if (!(flags & (1 << 6))){ + if (!(flags & GAME_COMMAND_FLAG_GHOST)){ + sub_6CB945(rideIndex); ride_update_max_vehicles(rideIndex); } }