From 19dc01232c0585231891c303964f3690e211a7de Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Sun, 30 Jun 2019 16:03:24 +0300 Subject: [PATCH] Fix CenterOnCell target rotation --- apps/openmw/mwworld/worldimp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 6020572bc..3426e9115 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -2808,6 +2808,7 @@ namespace MWWorld /// \note Using _any_ door pointed to the interior, /// not the one pointed to current door. pos = destDoor.mRef.getDoorDest(); + pos.rot[0] = pos.rot[1] = pos.rot[2] = 0; return true; } } @@ -2818,6 +2819,7 @@ namespace MWWorld if (!statics.empty()) { pos = statics.begin()->mRef.getPosition(); + pos.rot[0] = pos.rot[1] = pos.rot[2] = 0; return true; }