Add comment to clarify that non-inventioned rides are skipped

This commit is contained in:
Gymnasiast 2015-08-07 22:34:15 +02:00
parent 2a9698c7c2
commit 46a0529f40
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;