mirror of https://github.com/OpenRCT2/OpenRCT2.git
improve new ride window populate docs
This commit is contained in:
parent
9b08db7020
commit
01e32c301d
|
@ -34,9 +34,13 @@ typedef struct {
|
||||||
uint8 entry_index;
|
uint8 entry_index;
|
||||||
} ride_list_item;
|
} ride_list_item;
|
||||||
|
|
||||||
#pragma region Ride type category mappings
|
#pragma region Ride type view order
|
||||||
|
|
||||||
char RideTypeCategoryMap[] = {
|
/**
|
||||||
|
* The order of ride types shown in the new ride window so that the order stays consistent across games and rides of the same
|
||||||
|
* type are kept together.
|
||||||
|
*/
|
||||||
|
const char RideTypeViewOrder[] = {
|
||||||
// Transport rides
|
// Transport rides
|
||||||
RIDE_TYPE_MINIATURE_RAILWAY,
|
RIDE_TYPE_MINIATURE_RAILWAY,
|
||||||
RIDE_TYPE_MONORAIL,
|
RIDE_TYPE_MONORAIL,
|
||||||
|
@ -291,8 +295,9 @@ static void window_new_ride_populate_list()
|
||||||
ride_list_item *nextListItem = (ride_list_item*)0x00F43523;
|
ride_list_item *nextListItem = (ride_list_item*)0x00F43523;
|
||||||
uint8 **rideEntries = (uint8**)0x009ACFA4;
|
uint8 **rideEntries = (uint8**)0x009ACFA4;
|
||||||
|
|
||||||
for (i = 0; i < countof(RideTypeCategoryMap); i++) {
|
// For each ride type in the view order list
|
||||||
uint8 rideType = RideTypeCategoryMap[i];
|
for (i = 0; i < countof(RideTypeViewOrder); i++) {
|
||||||
|
uint8 rideType = RideTypeViewOrder[i];
|
||||||
if (rideType == RIDE_TYPE_NULL)
|
if (rideType == RIDE_TYPE_NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -710,5 +715,5 @@ static void window_new_ride_scrollpaint()
|
||||||
|
|
||||||
window_paint_get_registers(w, dpi);
|
window_paint_get_registers(w, dpi);
|
||||||
|
|
||||||
RCT2_CALLPROC_X(0x006B6ABF, 0, 0, 0, 0, w, dpi, 0);
|
RCT2_CALLPROC_X(0x006B6ABF, 0, 0, 0, 0, (int)w, (int)dpi, 0);
|
||||||
}
|
}
|
Loading…
Reference in New Issue