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

Fix #6497: Boat hire boats do not return to station

Credit goes to @duncanspumpkin
This commit is contained in:
Michał Janiszewski
2017-10-16 23:20:50 +02:00
committed by Michael Steenbeek
parent 2ec1c71c9f
commit 6695a4ce13
2 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ typedef struct GameAction GameAction;
// 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 "16"
#define NETWORK_STREAM_VERSION "17"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
#ifdef __cplusplus

View File

@@ -4588,8 +4588,8 @@ static void vehicle_update_boat_location(rct_vehicle * vehicle)
if (scenario_rand() & 1)
{
LocationXY16 destLocation = {
static_cast<uint8>(returnPosition.x * 32 - TileDirectionDelta[returnDirection].x + 16),
static_cast<uint8>(returnPosition.y * 32 - TileDirectionDelta[returnDirection].y + 16)
static_cast<sint16>(returnPosition.x * 32 - TileDirectionDelta[returnDirection].x + 16),
static_cast<sint16>(returnPosition.y * 32 - TileDirectionDelta[returnDirection].y + 16)
};
destLocation.x -= vehicle->x;