From d33d892931475f4075961e426d0fc9fe47eb1f75 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Fri, 16 Jan 2015 09:36:54 +0000 Subject: [PATCH] Fixed rides becomeing too popular --- src/ride/ride.c | 1 + src/ride/ride.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ride/ride.c b/src/ride/ride.c index 9939ad64c8..06ba58780d 100644 --- a/src/ride/ride.c +++ b/src/ride/ride.c @@ -1131,6 +1131,7 @@ void ride_update_popularity(rct_ride* ride, uint8 pop_amount){ if (ride->popularity_time_out < 25)return; ride->popularity = ride->popularity_next; + ride->popularity_next = 0; ride->popularity_time_out = 0; ride->var_14D |= 1; } diff --git a/src/ride/ride.h b/src/ride/ride.h index fc6e433f04..5fc7a53d73 100644 --- a/src/ride/ride.h +++ b/src/ride/ride.h @@ -181,7 +181,7 @@ typedef struct { uint32 total_customers; // 0x150 money32 total_profit; // 0x154 uint8 popularity; // 0x158 - uint8 popularity_time_out; // 0x159 Updated every purchase and also by time + uint8 popularity_time_out; // 0x159 Updated every purchase and ?possibly by time? uint8 popularity_next; // 0x15A When timeout reached this will be the next popularity uint8 num_riders; // 0x15B uint8 music_tune_id; // 0x15C