1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-24 11:23:09 +00:00

Account for view distance changes

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

View file

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

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;