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

Set correct base height for newly inserted corrupt elements

This commit is contained in:
Hielke Morsink
2017-05-12 23:41:25 +02:00
committed by Michael Steenbeek
parent d56dd24a20
commit 3ba33d098e
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ extern "C" {
// This define 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 "3"
#define NETWORK_STREAM_VERSION "4"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
#ifdef __cplusplus

View File

@@ -83,7 +83,7 @@ sint32 tile_inspector_insert_corrupt_at(sint32 x, sint32 y, sint16 elementIndex,
corruptElement->type = MAP_ELEMENT_TYPE_CORRUPT;
// Set the base height to be the same as the selected element
rct_map_element *const selectedElement = map_get_nth_element_at(x, y, elementIndex);
rct_map_element *const selectedElement = map_get_nth_element_at(x, y, elementIndex + 1);
if (!selectedElement) {
return MONEY32_UNDEFINED;
}