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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user