1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Fix #17897: Guest can get stuck on construction rights outside the park

Caused by a refactor mistake in f0777e5418.
This commit is contained in:
lalip
2022-08-31 23:49:45 +02:00
committed by Gymnasiast
parent a5a6d3a66c
commit a891d85dd9
2 changed files with 2 additions and 2 deletions

View File

@@ -46,6 +46,7 @@
- Fix: [#17788] Guests could leave queue if another guest rejoins it from the entrance building.
- Fix: [#17834] Finance window becomes blank after 4096 years.
- Fix: [#17816] Option to pause game when Steam Overlay is active is not greyed out when using the OpenGL renderer.
- Fix: [#17897] Guest can get stuck on tiles with construction rights outside the park.
- Fix: [#17905] The chain button in the map window is enabled for rectangular maps when (re)opened.
- Fix: [#17931] The in-game command count_objects crashes the game.

View File

@@ -797,8 +797,7 @@ bool map_is_location_owned(const CoordsXYZ& loc)
if (surfaceElement->GetOwnership() & OWNERSHIP_CONSTRUCTION_RIGHTS_OWNED)
{
if (loc.z < surfaceElement->GetBaseZ()
|| loc.z >= surfaceElement->GetBaseZ() + ConstructionRightsClearanceSmall)
if (loc.z < surfaceElement->GetBaseZ() || loc.z >= surfaceElement->GetBaseZ() + ConstructionRightsClearanceBig)
return true;
}
}