1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 04:23:20 +01:00

Do not deselect boosters after building one, fixes #4975

This commit is contained in:
X123M3-256
2017-01-09 21:51:16 +00:00
committed by Michael Steenbeek
parent 1c2458b6dd
commit 7c7b67f665

View File

@@ -1546,7 +1546,11 @@ void ride_construction_set_default_next_piece()
bank = FlatRideTrackDefinitions[trackType].bank_end;
slope = FlatRideTrackDefinitions[trackType].vangle_end;
} else {
curve = gTrackCurveChain[trackType].next;
if (ride->type != RIDE_TYPE_WILD_MOUSE && trackType == TRACK_ELEM_BOOSTER) {
curve = 0x100 | TRACK_ELEM_BOOSTER;
} else {
curve = gTrackCurveChain[trackType].next;
}
bank = TrackDefinitions[trackType].bank_end;
slope = TrackDefinitions[trackType].vangle_end;
}
@@ -1597,7 +1601,11 @@ void ride_construction_set_default_next_piece()
bank = FlatRideTrackDefinitions[trackType].bank_start;
slope = FlatRideTrackDefinitions[trackType].vangle_start;
} else {
curve = gTrackCurveChain[trackType].previous;
if (ride->type != RIDE_TYPE_WILD_MOUSE && trackType == TRACK_ELEM_BOOSTER) {
curve = 0x100 | TRACK_ELEM_BOOSTER;
} else {
curve = gTrackCurveChain[trackType].previous;
}
bank = TrackDefinitions[trackType].bank_start;
slope = TrackDefinitions[trackType].vangle_start;
}