From 2d61466263e13baf2f9e6fa49dd5375453da7058 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 30 Aug 2011 20:51:09 -0300 Subject: [PATCH] creature names fix --- src/otclient/core/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/otclient/core/map.cpp b/src/otclient/core/map.cpp index 882207b2..da342695 100644 --- a/src/otclient/core/map.cpp +++ b/src/otclient/core/map.cpp @@ -65,8 +65,8 @@ void Map::draw(const Rect& rect) float verticalStretchFactor = rect.height() / (float)(NUM_VISIBLE_Y_TILES * NUM_TILE_PIXELS); // draw player names and health bars - for(int x = 0; x < NUM_VISIBLE_Y_TILES; ++x) { - for(int y = 0; y <= NUM_VISIBLE_X_TILES; ++y) { + for(int x = 0; x < NUM_VISIBLE_X_TILES; ++x) { + for(int y = 0; y < NUM_VISIBLE_Y_TILES; ++y) { Position tilePos = Position(m_centralPosition.x + (x - 7), m_centralPosition.y + (y - 5), m_centralPosition.z); if(const TilePtr& tile = m_tiles[tilePos]) { auto& creatures = tile->getCreatures();