mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Update mHalfGridSize in Scene::changeCellGrid before using it.
This commit is contained in:
parent
5f6ca2a6d1
commit
1d55844f26
@ -543,6 +543,8 @@ namespace MWWorld
|
||||
|
||||
void Scene::changeCellGrid(const osg::Vec3f& pos, ESM::ExteriorCellLocation playerCellIndex, bool changeEvent)
|
||||
{
|
||||
mHalfGridSize
|
||||
= isEsm4Ext(playerCellIndex.mWorldspace) ? Constants::ESM4CellGridRadius : Constants::CellGridRadius;
|
||||
auto navigatorUpdateGuard = mNavigator.makeUpdateGuard();
|
||||
int playerCellX = playerCellIndex.mX;
|
||||
int playerCellY = playerCellIndex.mY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user