diff --git a/apps/openmw/mwgui/mapwindow.cpp b/apps/openmw/mwgui/mapwindow.cpp index b101b2f40e..6bd05f9af9 100644 --- a/apps/openmw/mwgui/mapwindow.cpp +++ b/apps/openmw/mwgui/mapwindow.cpp @@ -217,7 +217,6 @@ namespace MWGui mLocalMap = widget; mCompass = compass; mGrid = createRect({ 0, 0 }, cellDistance); - mExtCellDistance = cellDistance; const int mapWidgetSize = Settings::map().mLocalMapWidgetSize; setCanvasSize(mLocalMap, mGrid, mapWidgetSize); @@ -399,7 +398,7 @@ namespace MWGui if (mActiveCell && mActiveCell->isExterior()) previousActiveGrid = createRect({ mActiveCell->getGridX(), mActiveCell->getGridY() }, Constants::CellGridRadius); - mGrid = createRect({ x, y }, mExtCellDistance); + mGrid = createRect({ x, y }, getLocalViewingDistance()); const MyGUI::IntRect activeGrid = createRect({ x, y }, Constants::CellGridRadius); mExteriorDoorMarkerWidgets.clear(); diff --git a/apps/openmw/mwgui/mapwindow.hpp b/apps/openmw/mwgui/mapwindow.hpp index 2936ab8438..50894b267b 100644 --- a/apps/openmw/mwgui/mapwindow.hpp +++ b/apps/openmw/mwgui/mapwindow.hpp @@ -184,7 +184,6 @@ namespace MWGui MWGui::LocalMapBase::MapEntry& addMapEntry(); MyGUI::IntRect mGrid{ -1, -1, 1, 1 }; - int mExtCellDistance = 0; float mMarkerUpdateTimer = 0.f; float mLastDirectionX = 0.f;