1
0
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:
Tulio Leao
2020-04-21 07:33:53 -03:00
committed by GitHub
parent 2479256bc1
commit 12beb78377

View File

@@ -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;