forked from rosebudai/OpenRCT2-Web
Use enum for PeepState instead of raw Number on NewsItem (#11384)
This commit is contained in:
1 parent
2479256bc1
commit
12beb78377
1 file changed
+1
-1
@@ -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