diff --git a/modules/game/widgets/uigamemap.lua b/modules/game/widgets/uigamemap.lua index 26d55886..2f0a181a 100644 --- a/modules/game/widgets/uigamemap.lua +++ b/modules/game/widgets/uigamemap.lua @@ -60,7 +60,6 @@ function UIGameMap:onMouseRelease(mousePosition, mouseButton) ((Mouse.isPressed(MouseLeftButton) and mouseButton == MouseRightButton) or (Mouse.isPressed(MouseRightButton) and mouseButton == MouseLeftButton)) then local tile = self:getTile(mousePosition) - print(tile:getTopLookThing():getId()) g_game.look(tile:getTopLookThing()) self.cancelNextRelease = true return true diff --git a/src/otclient/core/mapview.cpp b/src/otclient/core/mapview.cpp index 23dbabaa..00c71272 100644 --- a/src/otclient/core/mapview.cpp +++ b/src/otclient/core/mapview.cpp @@ -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();