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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user