mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #16276. Paths on trackdesigns not connecting on placement
This commit is contained in:
parent
7fff8fae7a
commit
81b490b0bc
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue