1
0
Fork 0
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:
psi29a 2023-09-10 15:23:09 +00:00
commit 4deb012edf
No known key found for this signature in database

View file

@ -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)
{ {