Account for view distance changes

This commit is contained in:
Evil Eye 2025-09-11 17:05:34 +02:00
parent 50601b7733
commit 423261b721
2 changed files with 1 additions and 3 deletions

View File

@ -216,7 +216,6 @@ namespace MWGui
mLocalMap = widget;
mCompass = compass;
mGrid = createRect({ 0, 0 }, cellDistance);
mExtCellDistance = cellDistance;
const int mapWidgetSize = Settings::map().mLocalMapWidgetSize;
setCanvasSize(mLocalMap, mGrid, mapWidgetSize);
@ -398,7 +397,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();

View File

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