mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-12 02:22:26 +01:00
Fixed rides becomeing too popular
This commit is contained in:
@@ -1131,6 +1131,7 @@ void ride_update_popularity(rct_ride* ride, uint8 pop_amount){
|
|||||||
if (ride->popularity_time_out < 25)return;
|
if (ride->popularity_time_out < 25)return;
|
||||||
|
|
||||||
ride->popularity = ride->popularity_next;
|
ride->popularity = ride->popularity_next;
|
||||||
|
ride->popularity_next = 0;
|
||||||
ride->popularity_time_out = 0;
|
ride->popularity_time_out = 0;
|
||||||
ride->var_14D |= 1;
|
ride->var_14D |= 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ typedef struct {
|
|||||||
uint32 total_customers; // 0x150
|
uint32 total_customers; // 0x150
|
||||||
money32 total_profit; // 0x154
|
money32 total_profit; // 0x154
|
||||||
uint8 popularity; // 0x158
|
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 popularity_next; // 0x15A When timeout reached this will be the next popularity
|
||||||
uint8 num_riders; // 0x15B
|
uint8 num_riders; // 0x15B
|
||||||
uint8 music_tune_id; // 0x15C
|
uint8 music_tune_id; // 0x15C
|
||||||
|
|||||||
Reference in New Issue
Block a user