From 817078cbea0354f635f43bf18cc886be3d457f8b Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Sat, 9 Sep 2023 20:36:55 +0300 Subject: [PATCH] Reset the rotation for ESM3 door-based COC destinations again --- apps/openmw/mwworld/worldimp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 5a366ad9e0..241d252615 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -2693,7 +2693,11 @@ namespace MWWorld for (const MWWorld::LiveCellRef& 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& destDoor : source.getReadOnlyEsm4Doors().mList) {