From a78a6f2a33ba6be1777ff45c33d2c1033fa89844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= Date: Fri, 14 Dec 2018 20:08:18 +0100 Subject: [PATCH] Fix #8349: Ride's exit is rendered incorrectly while building it --- src/openrct2/ride/Ride.cpp | 2 +- src/openrct2/world/Entrance.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index 305dc96b23..305ec4283a 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -1932,7 +1932,7 @@ static int32_t ride_modify_entrance_or_exit(TileElement* tileElement, int32_t x, // Remove entrance / exit game_do_command( x, (GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_APPLY), y, rideIndex, - GAME_COMMAND_REMOVE_RIDE_ENTRANCE_OR_EXIT, stationIndex, 0); + GAME_COMMAND_REMOVE_RIDE_ENTRANCE_OR_EXIT, stationIndex, entranceType == ENTRANCE_TYPE_RIDE_EXIT); gCurrentToolWidget.widget_index = entranceType == ENTRANCE_TYPE_RIDE_ENTRANCE ? WC_RIDE_CONSTRUCTION__WIDX_ENTRANCE : WC_RIDE_CONSTRUCTION__WIDX_EXIT; gRideEntranceExitPlaceType = entranceType; diff --git a/src/openrct2/world/Entrance.cpp b/src/openrct2/world/Entrance.cpp index c676518aa1..9908b69394 100644 --- a/src/openrct2/world/Entrance.cpp +++ b/src/openrct2/world/Entrance.cpp @@ -496,7 +496,7 @@ void ride_entrance_exit_remove_ghost() gRideEntranceExitGhostPosition.x, (GAME_COMMAND_FLAG_5 | GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_APPLY), gRideEntranceExitGhostPosition.y, _currentRideIndex, GAME_COMMAND_REMOVE_RIDE_ENTRANCE_OR_EXIT, - gRideEntranceExitGhostStationIndex, 0); + gRideEntranceExitGhostStationIndex, gRideEntranceExitPlaceType == ENTRANCE_TYPE_RIDE_EXIT); } }