Fix CenterOnCell target rotation

pull/541/head
Alexei Dobrohotov 6 years ago committed by GitHub
parent 0bbb3788fe
commit 19dc01232c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save