1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:23:53 +00:00

Fix CenterOnCell target rotation

This commit is contained in:
Alexei Dobrohotov 2019-06-30 16:03:24 +03:00 committed by GitHub
parent 0bbb3788fe
commit 19dc01232c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}