mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Rename GetBrakeClosed() to IsBrakeClosed()
This commit is contained in:
@@ -852,20 +852,20 @@ void TrackElement::SetInverted(bool inverted)
|
||||
}
|
||||
}
|
||||
|
||||
bool TrackElement::BlockBrakeClosed() const
|
||||
bool TrackElement::IsBrakeClosed() const
|
||||
{
|
||||
return (Flags2 & TRACK_ELEMENT_FLAGS2_BLOCK_BRAKE_CLOSED) != 0;
|
||||
return (Flags2 & TRACK_ELEMENT_FLAGS2_BRAKE_CLOSED) != 0;
|
||||
}
|
||||
|
||||
void TrackElement::SetBlockBrakeClosed(bool isClosed)
|
||||
void TrackElement::SetBrakeClosed(bool isClosed)
|
||||
{
|
||||
if (isClosed)
|
||||
{
|
||||
Flags2 |= TRACK_ELEMENT_FLAGS2_BLOCK_BRAKE_CLOSED;
|
||||
Flags2 |= TRACK_ELEMENT_FLAGS2_BRAKE_CLOSED;
|
||||
}
|
||||
else
|
||||
{
|
||||
Flags2 &= ~TRACK_ELEMENT_FLAGS2_BLOCK_BRAKE_CLOSED;
|
||||
Flags2 &= ~TRACK_ELEMENT_FLAGS2_BRAKE_CLOSED;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user