mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add comment to clarify that non-inventioned rides are skipped
This commit is contained in:
parent
2a9698c7c2
commit
46a0529f40
|
@ -320,6 +320,7 @@ static void window_new_ride_populate_list()
|
|||
|
||||
quadIndex = rideEntryIndex >> 5;
|
||||
bitIndex = rideEntryIndex & 0x1F;
|
||||
// Skip if vehicle type is not invented yet
|
||||
if (!(RCT2_ADDRESS(0x01357424, uint32)[quadIndex] & (1 << bitIndex)))
|
||||
continue;
|
||||
|
||||
|
|
|
@ -2330,6 +2330,7 @@ static void window_ride_vehicle_mousedown(int widgetIndex, rct_window *w, rct_wi
|
|||
|
||||
quadIndex = rideEntryIndex >> 5;
|
||||
bitIndex = rideEntryIndex & 0x1F;
|
||||
// Skip if vehicle type is not invented yet
|
||||
if (!(RCT2_ADDRESS(0x01357424, uint32)[quadIndex] & (1 << bitIndex)))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue