diff --git a/Source/engine/render/text_render.cpp b/Source/engine/render/text_render.cpp index 5fc201276..73d35f14a 100644 --- a/Source/engine/render/text_render.cpp +++ b/Source/engine/render/text_render.cpp @@ -276,7 +276,7 @@ void WordWrapGameString(char *text, size_t width, GameFontTables size, int spaci } /** - * @todo replace SDL_Rect with croped CelOutputBuffer + * @todo replace SDL_Rect with cropped CelOutputBuffer */ int DrawString(const CelOutputBuffer &out, const char *text, const SDL_Rect &rect, uint16_t flags, int spacing, int lineHeight, bool drawTextCursor) { diff --git a/Source/qol/monhealthbar.cpp b/Source/qol/monhealthbar.cpp index 2d0db050d..fe5187be1 100644 --- a/Source/qol/monhealthbar.cpp +++ b/Source/qol/monhealthbar.cpp @@ -95,14 +95,14 @@ void DrawMonsterHealthBar(const CelOutputBuffer &out) UnsafeDrawVerticalLine(out, { xPos + width - border - 1, yPos + border + 1 }, borderHeight, borderColor); } - int barLableY = yPos + 10 + (height - 11) / 2; - DrawString(out, mon.mName, { xPos - 1, barLableY + 1, width, height }, UIS_CENTER | UIS_BLACK); + int barLabelY = yPos + 10 + (height - 11) / 2; + DrawString(out, mon.mName, { xPos - 1, barLabelY + 1, width, height }, UIS_CENTER | UIS_BLACK); uint16_t style = UIS_SILVER; if (mon._uniqtype != 0) style = UIS_GOLD; else if (mon.leader != 0) style = UIS_BLUE; - DrawString(out, mon.mName, { xPos, barLableY, width, height }, UIS_CENTER | style); + DrawString(out, mon.mName, { xPos, barLabelY, width, height }, UIS_CENTER | style); if (mon._uniqtype != 0 || monstkills[mon.MType->mtype] >= 15) { monster_resistance immunes[] = { IMMUNE_MAGIC, IMMUNE_FIRE, IMMUNE_LIGHTNING };