1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

add other pages to park window

This commit is contained in:
IntelOrca
2014-04-16 02:05:49 +01:00
parent 03db7f5bc0
commit eba4b6da9d
21 changed files with 1461 additions and 95 deletions

View File

@@ -24,6 +24,20 @@
#define GET_RIDE(x) (&(RCT2_ADDRESS(RCT2_ADDRESS_RIDE_LIST, rct_ride)[x]))
#define GET_RIDE_MEASUREMENT(x) (&(RCT2_ADDRESS(RCT2_ADDRESS_RIDE_MEASUREMENTS, rct_ride_measurement)[x]))
int ride_get_count()
{
rct_ride *ride;
int i, count = 0;
for (i = 0; i < MAX_RIDES; i++) {
ride = GET_RIDE(i);
if (ride->type != RIDE_TYPE_NULL)
count++;
}
return count;
}
/**
*
* rct2: 0x006ACA89