From b6562082e9a78f08dbf148eff91c3dfa22381e23 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Tue, 28 Sep 2021 18:10:00 +0200 Subject: [PATCH] Replace hardcoded max zoomlevel --- src/openrct2-ui/windows/Ride.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index dc0840b71a..26ced2d122 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -1212,7 +1212,7 @@ static void WindowRideUpdateOverallView(Ride* ride) { // Each farther zoom level shows twice as many tiles (log) // Appropriate zoom is lowered by one to fill the entire view with the ride - view.zoom = std::clamp(std::ceil(std::log(size / 80)) - 1, 0, 3); + view.zoom = std::clamp(std::ceil(std::log(size / 80)) - 1, 0, ZoomLevel::max()); } else {