mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Add comment to clarify that non-inventioned rides are skipped
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user