From 7862591a43c259ac158a72daa5184236a7720495 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Mon, 8 Feb 2021 23:29:59 +0100 Subject: [PATCH] Fix #14012: 'Finish 5 coasters' goal listed incorrectly in selector --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/ScenarioSelect.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 633bc675fd..2202642706 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -44,6 +44,7 @@ - Fix: [#13832] Players last action position is invalid on opening/closing a ride in multiplayer. - Fix: [#13937] Pathfinding gets confused when two entrances/exits from the same ride are on top of each other. - Fix: [#13961] Animation for Guests sliding down Spiral Slide is missing on close zoom levels. +- Fix: [#14012] 'Finish 5 roller coasters' goal is listed incorrectly in scenario selector. - Improved: [#6022] Allow up to 128 ride objects to be selected in track designer. - Improved: [#12917] Changed peep movement so that they stay more spread out over the full width of single tile paths. - Improved: [#13386] A GUI error message is now displayed if the language files are missing. diff --git a/src/openrct2-ui/windows/ScenarioSelect.cpp b/src/openrct2-ui/windows/ScenarioSelect.cpp index dd3697f843..0b9e81b8e7 100644 --- a/src/openrct2-ui/windows/ScenarioSelect.cpp +++ b/src/openrct2-ui/windows/ScenarioSelect.cpp @@ -514,7 +514,10 @@ static void window_scenarioselect_paint(rct_window* w, rct_drawpixelinfo* dpi) { ft.Add(scenario->objective_arg_3); ft.Add(date_get_total_months(MONTH_OCTOBER, scenario->objective_arg_1)); - ft.Add(scenario->objective_arg_2); + if (scenario->objective_type == OBJECTIVE_FINISH_5_ROLLERCOASTERS) + ft.Add(scenario->objective_arg_2); + else + ft.Add(scenario->objective_arg_2); } screenPos.y += gfx_draw_string_left_wrapped(dpi, ft.Data(), screenPos, 170, STR_OBJECTIVE, COLOUR_BLACK) + 5;