1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Close #12388, refactor PeepState to use strong enum (#12927)

* 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:
Łukasz Pękalski
2020-09-28 20:51:49 +02:00
committed by GitHub
parent d27e14f45b
commit d1cd2e08b5
21 changed files with 264 additions and 264 deletions

View File

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