diff --git a/src/otclient/core/creature.cpp b/src/otclient/core/creature.cpp index be40b020..66467e8f 100644 --- a/src/otclient/core/creature.cpp +++ b/src/otclient/core/creature.cpp @@ -66,7 +66,7 @@ void Creature::drawInformation(int x, int y, bool useGray) } } - Rect backgroundRect = Rect(x-(14.5), y-2, 27, 4); + Rect backgroundRect = Rect(x-(14.5), y, 27, 4); Rect healthRect = backgroundRect.expanded(-1); healthRect.setWidth((m_healthPercent/100.0)*25); @@ -81,7 +81,7 @@ void Creature::drawInformation(int x, int y, bool useGray) // name FontPtr font = g_fonts.getFont("tibia-12px-rounded"); - font->renderText(m_name, Rect(x-100, y-16, 200, 16), AlignTopCenter, fillColor); + font->renderText(m_name, Rect(x-100, y-15, 200, 15), AlignTopCenter, fillColor); } const ThingAttributes& Creature::getAttributes() diff --git a/src/otclient/core/map.cpp b/src/otclient/core/map.cpp index 35a5d81a..e709e0d4 100644 --- a/src/otclient/core/map.cpp +++ b/src/otclient/core/map.cpp @@ -86,8 +86,8 @@ void Map::draw(const Rect& rect) const ThingPtr& thing = *it; const CreaturePtr& creature = thing->asCreature(); - int x = (ix + 7)*32 + 5 - tile->getDrawNextOffset(); - int y = (iy + 5)*32 - 8 - tile->getDrawNextOffset(); + int x = (ix + 7)*32 + 10 - tile->getDrawNextOffset(); + int y = (iy + 5)*32 - 10 - tile->getDrawNextOffset(); // TODO: create isCovered function. bool useGray = (drawFloorStop != playerPos.z-1);