Fix #8942: Water level is raised abnormally (#8971)

This commit is contained in:
Nazey 2019-03-26 12:34:30 -04:00 committed by Aaron van Geffen
parent c841ee31e7
commit 047fa65a66
2 changed files with 5 additions and 1 deletions

View File

@ -86,6 +86,10 @@ private:
SurfaceElement* surfaceElement = tileElement->AsSurface();
uint8_t height = surfaceElement->GetWaterHeight();
if (surfaceElement->base_height > maxHeight)
continue;
if (height != 0)
{
height *= 2;

View File

@ -31,7 +31,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 "9"
#define NETWORK_STREAM_VERSION "10"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;