From 0e327c86e4a1dee652f57ff72372a6debb7b21ad Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Fri, 2 Apr 2021 22:57:36 +0200 Subject: [PATCH] Fix ratings calculation taking 30 minutes --- src/openrct2/network/NetworkBase.cpp | 2 +- src/openrct2/ride/RideRatings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index be1536f5cf..2358beb336 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -36,7 +36,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; diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp index faaebc9c2e..f39a63a073 100644 --- a/src/openrct2/ride/RideRatings.cpp +++ b/src/openrct2/ride/RideRatings.cpp @@ -157,7 +157,7 @@ static void ride_ratings_update_state_0() ride_id_t currentRide = gRideRatingsCalcData.CurrentRide; currentRide++; - if (currentRide == RIDE_ID_NULL) + if (currentRide >= MAX_RIDES) { currentRide = 0; }