1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Remove direct access of track sequence

This commit is contained in:
Michael Steenbeek
2018-09-18 13:31:21 +02:00
committed by Gymnasiast
parent e6d5638815
commit d7f226592c

View File

@@ -5964,7 +5964,7 @@ int32_t ride_get_refund_price(int32_t ride_id)
{
addedcost = game_do_command(
trackElement.x, GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | (direction << 8), trackElement.y,
trackElement.element->properties.track.type | ((trackElement.element->properties.track.sequence & 0xF) << 8),
trackElement.element->properties.track.type | ((trackElement.element->AsTrack()->GetSequenceIndex()) << 8),
GAME_COMMAND_REMOVE_TRACK, trackElement.element->base_height * 8, 0);
cost += (addedcost == MONEY32_UNDEFINED) ? 0 : addedcost;