From 4d5b9c97fd81f6636fb50b10e007f708a41b7e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C4=8Cern=C3=A1=C4=8D?= Date: Fri, 20 May 2016 23:29:33 +0200 Subject: [PATCH] Fix #3685. Also refactor related enum value. (#3686) --- src/windows/ride.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows/ride.c b/src/windows/ride.c index b902d653a3..72096eeb5c 100644 --- a/src/windows/ride.c +++ b/src/windows/ride.c @@ -3306,7 +3306,8 @@ static void window_ride_operating_paint(rct_window *w, rct_drawpixelinfo *dpi) // Number of block sections if (ride->mode == RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED || ride->mode == RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED) { blockSections = ride->num_block_brakes + ride->num_stations; - gfx_draw_string_left(dpi, STR_BLOCK_SECTIONS, &blockSections, 0, w->x + 21, ride->mode == 36 ? w->y + 76 : w->y + 61); + gfx_draw_string_left(dpi, STR_BLOCK_SECTIONS, &blockSections, 0, w->x + 21, + ride->mode == RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED ? w->y + 89 : w->y + 61); } }