mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Use RideId::GetNull and RideId::IsNull over constant
This commit is contained in:
@@ -66,17 +66,17 @@ GameActions::Result SignSetNameAction::Execute() const
|
||||
if (!_name.empty())
|
||||
{
|
||||
banner->flags &= ~BANNER_FLAG_LINKED_TO_RIDE;
|
||||
banner->ride_index = RIDE_ID_NULL;
|
||||
banner->ride_index = RideId::GetNull();
|
||||
banner->text = _name;
|
||||
}
|
||||
else
|
||||
{
|
||||
// If empty name take closest ride name.
|
||||
RideId rideIndex = banner_get_closest_ride_index({ banner->position.ToCoordsXY(), 16 });
|
||||
if (rideIndex == RIDE_ID_NULL)
|
||||
if (rideIndex.IsNull())
|
||||
{
|
||||
banner->flags &= ~BANNER_FLAG_LINKED_TO_RIDE;
|
||||
banner->ride_index = RIDE_ID_NULL;
|
||||
banner->ride_index = RideId::GetNull();
|
||||
banner->text = {};
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user