Skip to content

Commit

Permalink
Reuse existing player position
Browse files Browse the repository at this point in the history
  • Loading branch information
elsid committed Jan 25, 2022
1 parent bba7beb commit a9ae263
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/openmw/mwworld/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9ae263

Please sign in to comment.