1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Fix import of S4 patrol areas

This commit is contained in:
Ted John
2021-06-02 20:01:32 +01:00
parent c8be23cfa0
commit cfaa823bd8

View File

@@ -1345,11 +1345,11 @@ private:
// index in the array ----^ ^--- bit position in the 8-bit value
// We do the opposite in this function to recover the x and y values.
staffmember->ClearPatrolArea();
int32_t peepOffset = static_cast<int32_t>(staffId) * RCT12_PATROL_AREA_SIZE;
for (int32_t i = 0; i < RCT12_PATROL_AREA_SIZE; i++)
{
staffmember->ClearPatrolArea();
if (_s4.patrol_areas[peepOffset + i] == 0)
{
// No patrol for this area