From 7a12312220eced3b4fb32ae88161a21961e3f29a Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 31 Jan 2012 19:25:05 -0200 Subject: [PATCH] .. --- src/otclient/core/mapview.cpp | 3 +-- src/otclient/core/mapview.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/otclient/core/mapview.cpp b/src/otclient/core/mapview.cpp index 84bb548f..f110b4ef 100644 --- a/src/otclient/core/mapview.cpp +++ b/src/otclient/core/mapview.cpp @@ -212,7 +212,7 @@ void MapView::updateVisibleTilesCache(int start) } // avoid rendering too much tiles at once on far views - if(count - start + 1 > MAX_TILE_UPDATES && m_viewRange >= FAR_VIEW) { + if(count - start + 1 > MAX_TILE_UPDATES && m_viewRange >= HUGE_VIEW) { stop = true; break; } @@ -240,7 +240,6 @@ void MapView::updateVisibleTilesCache(int start) assert(m_drawDimension.width() % 2 == 0 && m_drawDimension.height() % 2 == 0); Point quadTopLeft(m_drawDimension.width()/2 - 1, m_drawDimension.height()/2 - 1); for(int step = 1; !(quadTopLeft.x < 0 && quadTopLeft.y < 0) && !stop; ++step) { - int quadWidth = std::min(2*step, m_drawDimension.width()); int quadHeight = std::min(2*step, m_drawDimension.height()); int fillWidth = (quadTopLeft.x >= 0) ? quadWidth-1 : quadWidth; diff --git a/src/otclient/core/mapview.h b/src/otclient/core/mapview.h index 576fa1f7..280fb306 100644 --- a/src/otclient/core/mapview.h +++ b/src/otclient/core/mapview.h @@ -38,7 +38,7 @@ class MapView : public LuaObject DEFAULT_FRAMBUFFER_HEIGHT = 1440, NEAR_VIEW_AREA = 32*32, - MID_VIEW_AREA = 64*64, + MID_VIEW_AREA = 96*96, MAX_TILE_UPDATES = NEAR_VIEW_AREA*7 };