From 12354e1f2ac5ca14c836270476481d7af3ecab25 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 3 Aug 2017 11:58:00 +0200 Subject: [PATCH] Fix #6113: track list preview shows incorrect heighest drop height --- distribution/changelog.txt | 1 + src/openrct2/windows/track_list.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 783a45ed6a..0536cbee47 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -28,6 +28,7 @@ - Fix: [#6052] Unable to place entrance/exit on certain ride types. - Fix: [#6071] Quick demolish can delete protected ride. - Fix: [#6111] Mute button always visible in editor. +- Fix: [#6113] Track preview shows incorrect highest drop height. - Improved: [#2223] Change mountain tool to ignore higher surrounding tiles. - Improved: [#4301] Leading and trailing whitespace in player name is now removed. - Improved: [#5859] OpenGL rendering performance diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 68481d1491..dda2c22d6c 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -528,7 +528,8 @@ static void window_track_list_paint(rct_window *w, rct_drawpixelinfo *dpi) y += 10; // Drop height is multiplied by 0.75 - gfx_draw_string_left(dpi, STR_HIGHEST_DROP_HEIGHT, &drops, COLOUR_BLACK, x, y); + uint16 highestDropHeight = (td6->highest_drop_height * 3) / 4; + gfx_draw_string_left(dpi, STR_HIGHEST_DROP_HEIGHT, &highestDropHeight, COLOUR_BLACK, x, y); y += 10; }