From 2e52fac0ca2f887195b047f49711c35410fe5093 Mon Sep 17 00:00:00 2001 From: nightroan Date: Thu, 22 Oct 2015 01:17:30 -0700 Subject: [PATCH] Testing or opening a ride only closes the construction window for that ride. --- src/ride/ride.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ride/ride.c b/src/ride/ride.c index a233ca27b9..78e657938c 100644 --- a/src/ride/ride.c +++ b/src/ride/ride.c @@ -4452,7 +4452,7 @@ int ride_is_valid_for_test(int rideIndex, int goingToBeOpen, int isApplying) ride = GET_RIDE(rideIndex); - window_close_by_class(WC_RIDE_CONSTRUCTION); + window_close_by_number(WC_RIDE_CONSTRUCTION, rideIndex); stationIndex = ride_mode_check_station_present(ride); if (stationIndex == -1)return 0; @@ -4575,7 +4575,7 @@ int ride_is_valid_for_open(int rideIndex, int goingToBeOpen, int isApplying) ride = GET_RIDE(rideIndex); - window_close_by_class(WC_RIDE_CONSTRUCTION); + window_close_by_number(WC_RIDE_CONSTRUCTION, rideIndex); stationIndex = ride_mode_check_station_present(ride); if (stationIndex == -1)return 0;