mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
remove print, fix creature name position
This commit is contained in:
@@ -155,10 +155,10 @@ void MapView::draw(const Rect& rect)
|
||||
// avoid drawing texts on map in far zoom outs
|
||||
if(m_viewMode == NEAR_VIEW && m_drawTexts) {
|
||||
for(const CreaturePtr& creature : m_cachedFloorVisibleCreatures) {
|
||||
Point creatureOffset = Point(16 - creature->getDisplacementX(), -3 - creature->getDisplacementY());
|
||||
Position pos = creature->getPosition();
|
||||
|
||||
Point p = transformPositionTo2D(pos) - drawOffset;
|
||||
p += (creature->getDrawOffset() + Point(8, -10)) * scaleFactor;
|
||||
p += (creature->getDrawOffset() + creatureOffset) * scaleFactor;
|
||||
p.x = p.x * horizontalStretchFactor;
|
||||
p.y = p.y * verticalStretchFactor;
|
||||
p += rect.topLeft();
|
||||
|
Reference in New Issue
Block a user