mirror of https://github.com/OpenRCT2/OpenRCT2.git
Apply a few more code review comments
This commit is contained in:
parent
9e7504fd98
commit
5a90cd4163
|
@ -205,7 +205,7 @@ void InGameConsole::WriteLine(const std::string& input, FormatToken colourFormat
|
|||
// The draw function handles the default text colour differently
|
||||
auto colourCodepoint = "";
|
||||
if (colourFormat != FormatToken::ColourWindow2)
|
||||
colourCodepoint = "{";
|
||||
colourCodepoint = "{WINDOW_COLOUR_2}";
|
||||
|
||||
std::string line;
|
||||
std::size_t splitPos = 0;
|
||||
|
|
|
@ -240,10 +240,7 @@ void font_sprite_initialise_characters()
|
|||
int32_t width = 0;
|
||||
if (g1 != nullptr)
|
||||
{
|
||||
if (glyphIndex < 91 || glyphIndex >= 109)
|
||||
{
|
||||
width = (g1->width + 2 * g1->x_offset) - 1;
|
||||
}
|
||||
width = g1->width + (2 * g1->x_offset) - 1;
|
||||
}
|
||||
|
||||
_spriteFontCharacterWidths[fontSize][glyphIndex] = static_cast<uint8_t>(width);
|
||||
|
|
Loading…
Reference in New Issue