mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 05:10:26 +00:00
Merge branch 'centeroncell' into 'master'
Reset the rotation for ESM3 door-based COC destinations again (#7471) Closes #7471 See merge request OpenMW/openmw!3416
This commit is contained in:
commit
4deb012edf
1 changed files with 5 additions and 1 deletions
|
@ -2693,7 +2693,11 @@ namespace MWWorld
|
||||||
for (const MWWorld::LiveCellRef<ESM::Door>& destDoor : source.getReadOnlyDoors().mList)
|
for (const MWWorld::LiveCellRef<ESM::Door>& destDoor : source.getReadOnlyDoors().mList)
|
||||||
{
|
{
|
||||||
if (cellId == destDoor.mRef.getDestCell())
|
if (cellId == destDoor.mRef.getDestCell())
|
||||||
return destDoor.mRef.getDoorDest();
|
{
|
||||||
|
ESM::Position doorDest = destDoor.mRef.getDoorDest();
|
||||||
|
doorDest.rot[0] = doorDest.rot[1] = doorDest.rot[2] = 0;
|
||||||
|
return doorDest;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (const MWWorld::LiveCellRef<ESM4::Door>& destDoor : source.getReadOnlyEsm4Doors().mList)
|
for (const MWWorld::LiveCellRef<ESM4::Door>& destDoor : source.getReadOnlyEsm4Doors().mList)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue