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:
matheusvb3 authored and GitHub committed 2025-10-04 22:52:26 +00:00
1 parent 1089b11192
commit d8da02e7dd
7 files changed
+33 -32

No files matched your search

+1 -1
View File
@@ -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;