Browse Source

fix typos (#2038)

pull/2039/head
qndel 5 years ago committed by GitHub
parent
commit
faae9a65c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/engine/render/text_render.cpp
  2. 6
      Source/qol/monhealthbar.cpp

2
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)
{

6
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 };

Loading…
Cancel
Save