Fix #17666: Map edge glitches when using mountain near it

This commit is contained in:
Hielke Morsink 2023-08-08 01:00:39 +02:00
parent 22a1fe3909
commit 4a3c2f4fb4
No known key found for this signature in database
GPG Key ID: FE0B343DF883E7F2
3 changed files with 3 additions and 8 deletions

View File

@ -9,6 +9,7 @@
- Change: [#20550] Change SEK conversion rate from 1 GBP to 0.1 GBP.
- Fix: [#6152] Camera and UI are no longer locked at 40 Hz, providing a smoother experience.
- Fix: [#9534] Screams no longer cut-off on steep diagonal drops.
- Fix: [#17666] Using the mountain tool near the edge of the map with clearance checks disabled causes visual glitches.
- Fix: [#19450] The correct element is now auto-suggested when building a Medium Half Loop backwards.
- Fix: [#19822] Tile inspector does not deep copy banners.
- Fix: [#19823] Parkobj: disallow overriding objects of different object types.

View File

@ -177,13 +177,7 @@ GameActions::Result LandSetHeightAction::Execute() const
StringId LandSetHeightAction::CheckParameters() const
{
if (!LocationValid(_coords))
{
return STR_OFF_EDGE_OF_MAP;
}
auto mapSizeMax = GetMapSizeMaxXY();
if (_coords.x > mapSizeMax.x || _coords.y > mapSizeMax.y)
if (!LocationValid(_coords) || MapIsEdge(_coords))
{
return STR_OFF_EDGE_OF_MAP;
}

View File

@ -43,7 +43,7 @@
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "15"
#define NETWORK_STREAM_VERSION "16"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION