Apply a few more code review comments

This commit is contained in:
Ted John 2020-11-27 18:54:51 +00:00
parent 9e7504fd98
commit 5a90cd4163
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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);