1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-15 18:39:51 +00:00

Reset the rotation for ESM3 door-based COC destinations again

This commit is contained in:
Alexei Kotov 2023-09-09 20:36:55 +03:00
parent bcc3365766
commit 817078cbea

View File

@ -2693,7 +2693,11 @@ namespace MWWorld
for (const MWWorld::LiveCellRef<ESM::Door>& destDoor : source.getReadOnlyDoors().mList)
{
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)
{