mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Apply code review comments
This commit is contained in:
@@ -111,19 +111,16 @@ void StdInOutConsole::Close()
|
||||
void StdInOutConsole::WriteLine(const std::string& s, FormatToken colourFormat)
|
||||
{
|
||||
std::string formatBegin;
|
||||
if (colourFormat != FormatToken::ColourWindow2)
|
||||
switch (colourFormat)
|
||||
{
|
||||
switch (colourFormat)
|
||||
{
|
||||
case FormatToken::ColourRed:
|
||||
formatBegin = "\033[31m";
|
||||
break;
|
||||
case FormatToken::ColourYellow:
|
||||
formatBegin = "\033[33m";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
case FormatToken::ColourRed:
|
||||
formatBegin = "\033[31m";
|
||||
break;
|
||||
case FormatToken::ColourYellow:
|
||||
formatBegin = "\033[33m";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (formatBegin.empty() || !Platform::IsColourTerminalSupported())
|
||||
|
||||
Reference in New Issue
Block a user