1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Refactor RideCreateAction to pass entrance object explicitly

This commit is contained in:
ζeh Matt
2022-01-29 17:07:31 +02:00
parent 383412252c
commit dea22ad951
5 changed files with 13 additions and 8 deletions

View File

@@ -1920,7 +1920,7 @@ int32_t TrackDesignGetZPlacement(TrackDesign* td6, Ride* ride, const CoordsXYZ&
static money32 TrackDesignCreateRide(int32_t type, int32_t subType, int32_t flags, ride_id_t* outRideIndex)
{
// Don't set colours as will be set correctly later.
auto gameAction = RideCreateAction(type, subType, 0, 0);
auto gameAction = RideCreateAction(type, subType, 0, 0, gLastEntranceStyle);
gameAction.SetFlags(flags);
auto res = GameActions::ExecuteNested(&gameAction);