mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Use enum for PeepState instead of raw Number on NewsItem (#11384)
This commit is contained in:
@@ -231,7 +231,7 @@ std::optional<CoordsXYZ> news_item_get_subject_location(int32_t type, int32_t su
|
||||
if (subjectLoc->x != LOCATION_NULL)
|
||||
break;
|
||||
|
||||
if (peep->state != 3 && peep->state != 7)
|
||||
if (peep->state != PEEP_STATE_ON_RIDE && peep->state != PEEP_STATE_ENTERING_RIDE)
|
||||
{
|
||||
subjectLoc = std::nullopt;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user