From 46a0529f40995ce536c35f7117fb11b6abd19005 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 7 Aug 2015 22:34:15 +0200 Subject: [PATCH] Add comment to clarify that non-inventioned rides are skipped --- src/windows/new_ride.c | 1 + src/windows/ride.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/windows/new_ride.c b/src/windows/new_ride.c index 0e1acc21eb..032df21a2c 100644 --- a/src/windows/new_ride.c +++ b/src/windows/new_ride.c @@ -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; diff --git a/src/windows/ride.c b/src/windows/ride.c index 93d2cd5585..96b1a2d869 100644 --- a/src/windows/ride.c +++ b/src/windows/ride.c @@ -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;