1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Fix rides not breaking down

This commit is contained in:
Gymnasiast
2017-07-20 21:55:29 +02:00
parent 636cd5468a
commit 4d23845d4b
2 changed files with 2 additions and 2 deletions

View File

@@ -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 "3"
#define NETWORK_STREAM_VERSION "4"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
#ifdef __cplusplus

View File

@@ -2331,7 +2331,7 @@ static void ride_breakdown_update(sint32 rideIndex)
//
// a 0.8% chance, less the breakdown factor which accumulates as the game
// continues.
if ((ride->reliability_percentage == 0 || (sint32)(scenario_rand() & 0x2FFFFF) <= 1 + RIDE_INITIAL_RELIABILITY - ride->reliability_percentage)
if ((ride->reliability == 0 || (sint32)(scenario_rand() & 0x2FFFFF) <= 1 + RIDE_INITIAL_RELIABILITY - ride->reliability)
&& !gCheatsDisableAllBreakdowns) {
sint32 breakdownReason = ride_get_new_breakdown_problem(ride);
if (breakdownReason != -1)