mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
* Close #12388, refactor:PeepState to use strong enum * refactor: refactored file PlayTests.cpp * refactor: change PEEP_STATE_ to PeepState:: and camel case after merging chore: code reformatting
This commit is contained in:
@@ -417,11 +417,11 @@ void footpath_interrupt_peeps(const CoordsXYZ& footpathPos)
|
||||
auto quad = EntityTileList<Peep>(footpathPos);
|
||||
for (auto peep : quad)
|
||||
{
|
||||
if (peep->State == PEEP_STATE_SITTING || peep->State == PEEP_STATE_WATCHING)
|
||||
if (peep->State == PeepState::Sitting || peep->State == PeepState::Watching)
|
||||
{
|
||||
if (peep->z == footpathPos.z)
|
||||
{
|
||||
peep->SetState(PEEP_STATE_WALKING);
|
||||
peep->SetState(PeepState::Walking);
|
||||
peep->DestinationX = (peep->x & 0xFFE0) + 16;
|
||||
peep->DestinationY = (peep->y & 0xFFE0) + 16;
|
||||
peep->DestinationTolerance = 5;
|
||||
|
||||
Reference in New Issue
Block a user