remove print, fix creature name position

This commit is contained in:
Henrique Santiago 2012-04-21 21:45:05 -03:00
parent dcb196d45a
commit dcefeb134c
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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();