mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix ratings calculation taking 30 minutes
This commit is contained in:
parent
4d3328c7bb
commit
0e327c86e4
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue