1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Merge pull request #1745 from Gymnasiast/invention-comment

Add comment to clarify that non-inventioned rides are skipped
This commit is contained in:
Ted John
2015-08-07 22:01:34 +01:00
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;