mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 04:39:42 +00:00
Reuse existing player position
This commit is contained in:
parent
bba7beb0c5
commit
a9ae263acd
1 changed files with 1 additions and 2 deletions
|
@ -511,8 +511,7 @@ namespace MWWorld
|
|||
if (mCurrentCell == nullptr)
|
||||
return;
|
||||
|
||||
const auto player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||
mNavigator.updatePlayerPosition(player.getRefData().getPosition().asVec3());
|
||||
mNavigator.updatePlayerPosition(pos);
|
||||
|
||||
if (!mCurrentCell->isExterior())
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue