Skip to content

Commit

Permalink
Fix logic error setting in game console colours
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmbernardi committed Dec 19, 2024
1 parent 2a3a723 commit 895a38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openrct2-ui/interface/InGameConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ void InGameConsole::WriteLine(const std::string& input, FormatToken colourFormat
{
// Include text colour format only for special cases
// The draw function handles the default text colour differently
auto colourCodepoint = "";
std::string colourCodepoint = "";
if (colourFormat != FormatToken::ColourWindow2)
colourCodepoint = "{WINDOW_COLOUR_2}";
colourCodepoint = FormatTokenToStringWithBraces(colourFormat);

std::string line;
std::size_t splitPos = 0;
Expand Down

0 comments on commit 895a38b

Please sign in to comment.