Fix #16276. Paths on trackdesigns not connecting on placement

This commit is contained in:
duncanspumpkin 2022-01-15 07:11:07 +00:00
parent 7fff8fae7a
commit 81b490b0bc
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "10"
#define NETWORK_STREAM_VERSION "11"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;

View File

@ -1228,7 +1228,7 @@ static GameActions::Result TrackDesignPlaceSceneryElement(
return GameActions::Result();
}
auto* pathElement = map_get_path_element_at({ mapCoord.x / 32, mapCoord.y / 32, z });
auto* pathElement = map_get_path_element_at(TileCoordsXYZ{ CoordsXYZ{ mapCoord.x, mapCoord.y, z } });
if (pathElement == nullptr)
{
return GameActions::Result();