Fix #17450: Ducks can swim on three-corners-up land tile. (#17456)

This commit is contained in:
Sadret 2022-06-28 02:37:00 +02:00 committed by GitHub
parent 585ebed600
commit 1b154b1b6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -47,6 +47,7 @@
- Fix: [#17369] [Plugin] Car.travelBy() moves other cars as well.
- Fix: [#17381] Air Powered Vertical Coaster stat penalty is wrong.
- Fix: [#17433] Wrong T-shirt colours for guests on a Twist ride.
- Fix: [#17450] Ducks can swim on three-corners-up land tile.
0.4.0 (2022-04-25)
------------------------------------------------------------------------

View File

@ -203,7 +203,7 @@ void Duck::UpdateSwim()
landZ = tile_element_height(destination);
waterZ = tile_element_water_height(destination);
if (z >= landZ && z == waterZ)
if (z > landZ && z == waterZ)
{
destination.z = waterZ;
MoveTo(destination);

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 "2"
#define NETWORK_STREAM_VERSION "3"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;