From 354df90ab17be790b85c1cae75d6b594301bf52a Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Sun, 14 Aug 2022 22:37:32 +0200 Subject: [PATCH] Fix #17815,#17818: Special... dropdown and brake settings glitches --- data/language/en-GB.txt | 2 +- src/openrct2-ui/windows/MazeConstruction.cpp | 2 ++ src/openrct2-ui/windows/RideConstruction.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index de75a37d99..5cbc2165b1 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -282,7 +282,7 @@ STR_0892 :Screenshot saved to disk as ‘{STRINGID}’ STR_0893 :Screenshot failed! STR_0894 :Landscape data area full! STR_0895 :Can’t build partly above and partly below ground -STR_0896 :{STRINGID} Construction +STR_0896 :{POP16}{POP16}{STRINGID} Construction STR_0897 :Direction STR_0898 :Left-hand curve STR_0899 :Right-hand curve diff --git a/src/openrct2-ui/windows/MazeConstruction.cpp b/src/openrct2-ui/windows/MazeConstruction.cpp index f33a15b384..6a1f7166b8 100644 --- a/src/openrct2-ui/windows/MazeConstruction.cpp +++ b/src/openrct2-ui/windows/MazeConstruction.cpp @@ -282,10 +282,12 @@ public: auto ft = Formatter::Common(); if (currentRide != nullptr) { + ft.Increment(4); currentRide->FormatNameTo(ft); } else { + ft.Increment(4); ft.Add(STR_NONE); } } diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 8d68a5c982..3a2b7c92e2 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -1482,6 +1482,7 @@ public: // Set window title arguments ft = Formatter::Common(); + ft.Increment(4); currentRide->FormatNameTo(ft); }