forked from rosebudai/OpenRCT2-Web
Make peeps not stop on level crossings (#25089)
* Check if actions can be performed safely * Add explanatory comment * Refactor Easter egg logic in Guest::UpdateWalking * Add changelog entry * Make the comment more explanatory * Update NetworkBase.cpp * Update changelog for v0.28
This commit is contained in:
1 parent
1089b11192
commit
d8da02e7dd
7 files changed
+33
-32
No files matched your search
@@ -176,7 +176,7 @@ static std::optional<UpdateType> UpdateSmallSceneryAnimation(
|
||||
auto quad = EntityTileList<Peep>(CoordsXY{ loc.x, loc.y } - CoordsDirectionDelta[direction]);
|
||||
for (auto peep : quad)
|
||||
{
|
||||
if (peep->State != PeepState::Walking || peep->z != baseZ || peep->Action < PeepActionType::Idle)
|
||||
if (peep->State != PeepState::Walking || peep->z != baseZ || !peep->IsActionInterruptableSafely())
|
||||
continue;
|
||||
peep->Action = PeepActionType::CheckTime;
|
||||
peep->AnimationFrameNum = 0;
|
||||
|
||||
Reference in new issue
Block a user