1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +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

@@ -4101,7 +4101,7 @@ void Vehicle::UpdateUnloadingPassengers()
if (firstGuest != nullptr)
{
firstGuest->SetState(PEEP_STATE_LEAVING_RIDE);
firstGuest->SetState(PeepState::LeavingRide);
firstGuest->SubState = PEEP_RIDE_LEAVE_VEHICLE;
}
@@ -4110,7 +4110,7 @@ void Vehicle::UpdateUnloadingPassengers()
if (secondGuest != nullptr)
{
secondGuest->SetState(PEEP_STATE_LEAVING_RIDE);
secondGuest->SetState(PeepState::LeavingRide);
secondGuest->SubState = PEEP_RIDE_LEAVE_VEHICLE;
}
}
@@ -4146,7 +4146,7 @@ void Vehicle::UpdateUnloadingPassengers()
Peep* curPeep = GetEntity<Guest>(train->peep[peepIndex]);
if (curPeep != nullptr)
{
curPeep->SetState(PEEP_STATE_LEAVING_RIDE);
curPeep->SetState(PeepState::LeavingRide);
curPeep->SubState = PEEP_RIDE_LEAVE_VEHICLE;
}
}