mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Fix station_heights bug and use FOR_ALL_RIDES in ride_check_all_reachable
This commit is contained in:
@@ -328,11 +328,9 @@ void ride_shop_connected(rct_ride* ride, int ride_idx)
|
||||
void ride_check_all_reachable()
|
||||
{
|
||||
rct_ride *ride;
|
||||
|
||||
for (int i = 0; i < MAX_RIDES; i++) {
|
||||
ride = GET_RIDE(i);
|
||||
if (ride->type == RIDE_TYPE_NULL)
|
||||
continue;
|
||||
int i;
|
||||
|
||||
FOR_ALL_RIDES(i, ride) {
|
||||
if (ride->connected_message_throttle != 0)
|
||||
ride->connected_message_throttle--;
|
||||
if (ride->status != RIDE_STATUS_OPEN || ride->connected_message_throttle != 0)
|
||||
@@ -342,7 +340,6 @@ void ride_check_all_reachable()
|
||||
ride_shop_connected(ride, i);
|
||||
else
|
||||
ride_entrance_exit_connected(ride, i);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ typedef struct {
|
||||
uint32 var_04C;
|
||||
uint16 overall_view; // 0x050
|
||||
uint16 station_starts[4]; // 0x052
|
||||
uint16 station_heights[4]; // 0x05A
|
||||
uint8 pad_062[8];
|
||||
uint8 station_heights[4]; // 0x05A
|
||||
uint8 pad_05E[0xC];
|
||||
uint16 entrances[4]; // 0x06A
|
||||
uint16 exits[4]; // 0x072
|
||||
uint8 pad_07A[0x0C];
|
||||
|
||||
Reference in New Issue
Block a user