1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Diagonal Brakes and Block Brakes

This commit is contained in:
spacek531
2022-01-28 00:46:35 -08:00
committed by Spacek531
parent 39ecab4bd2
commit 79730e50fd
89 changed files with 1335 additions and 147 deletions

View File

@@ -69,7 +69,9 @@ GameActions::Result TrackSetBrakeSpeedAction::QueryExecute(bool isExecuting) con
if (isExecuting)
{
tileElement->AsTrack()->SetBrakeBoosterSpeed(_brakeSpeed);
GetTrackElementOriginAndApplyChanges(
{ _loc, tileElement->GetDirection() }, tileElement->AsTrack()->GetTrackType(), _brakeSpeed, nullptr,
TRACK_ELEMENT_SET_BRAKE_BOOSTER_SPEED);
}
return res;
}