mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Add railway crossing behaviour for staff (#18057)
This commit is contained in:
@@ -321,6 +321,18 @@ bool Peep::CheckForPath()
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Peep::PathIsBlockedByVehicle()
|
||||
{
|
||||
auto curPos = TileCoordsXYZ(GetLocation());
|
||||
auto dstPos = TileCoordsXYZ(CoordsXYZ{ GetDestination(), NextLoc.z });
|
||||
if ((curPos.x != dstPos.x || curPos.y != dstPos.y) && footpath_is_blocked_by_vehicle(dstPos))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
PeepActionSpriteType Peep::GetActionSpriteType()
|
||||
{
|
||||
if (IsActionInterruptable())
|
||||
|
||||
Reference in New Issue
Block a user