mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-31 00:11:31 +00:00
Merge branch 'uneventful' into 'master'
Don't trigger cell change logic when the player isn't changing cells Closes #8469 See merge request OpenMW/openmw!4657
This commit is contained in:
commit
0251b7c820
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ namespace MWLua
|
|||
stats.land(true);
|
||||
stats.setTeleported(true);
|
||||
world->getPlayer().setTeleported(true);
|
||||
world->changeToCell(destCell->getCell()->getId(), toPos(pos, rot), false);
|
||||
bool differentCell = ptr.getCell() != destCell;
|
||||
world->changeToCell(destCell->getCell()->getId(), toPos(pos, rot), false, differentCell);
|
||||
MWWorld::Ptr newPtr = world->getPlayerPtr();
|
||||
world->moveObject(newPtr, pos);
|
||||
world->rotateObject(newPtr, rot);
|
||||
|
|
Loading…
Reference in a new issue