From 5f150e38931b0640a82f3604786a1defe83dc76a Mon Sep 17 00:00:00 2001 From: zaxcav Date: Wed, 12 Jul 2017 22:17:30 +0200 Subject: [PATCH] Increase sync station limit Increased SYNCHRONISED_VEHICLE_COUNT to 16 to permit duelling coasters with more coasters. Otherwise no changes to the game logic. Feature requested in the forums: https://openrct2.org/forums/topic/2544-synchronized-stations-dont-work-passed-8-stations/ This will impact network games which already have duelling coasters built with more than 8 adjacent stations, so a new network version is necessary. --- src/openrct2/network/network.h | 2 +- src/openrct2/ride/vehicle.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index fdde0edce1..b43d85e4e5 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -55,7 +55,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 "0" +#define NETWORK_STREAM_VERSION "1" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/ride/vehicle.c b/src/openrct2/ride/vehicle.c index c6cab20a8c..99e000f784 100644 --- a/src/openrct2/ride/vehicle.c +++ b/src/openrct2/ride/vehicle.c @@ -2299,9 +2299,9 @@ typedef struct rct_synchronised_vehicle { assert_struct_size(rct_synchronised_vehicle, 4); #pragma pack(pop) -#define SYNCHRONISED_VEHICLE_COUNT 8 +#define SYNCHRONISED_VEHICLE_COUNT 16 -// 8 synchronised vehicle info +// Synchronised vehicle info rct_synchronised_vehicle _synchronisedVehicles[SYNCHRONISED_VEHICLE_COUNT] = { 0 }; static rct_synchronised_vehicle* _lastSynchronisedVehicle = NULL;