mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 20:45:35 +00:00
Fix CenterOnCell target rotation
This commit is contained in:
parent
0bbb3788fe
commit
19dc01232c
1 changed files with 2 additions and 0 deletions
|
@ -2808,6 +2808,7 @@ namespace MWWorld
|
||||||
/// \note Using _any_ door pointed to the interior,
|
/// \note Using _any_ door pointed to the interior,
|
||||||
/// not the one pointed to current door.
|
/// not the one pointed to current door.
|
||||||
pos = destDoor.mRef.getDoorDest();
|
pos = destDoor.mRef.getDoorDest();
|
||||||
|
pos.rot[0] = pos.rot[1] = pos.rot[2] = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2818,6 +2819,7 @@ namespace MWWorld
|
||||||
if (!statics.empty())
|
if (!statics.empty())
|
||||||
{
|
{
|
||||||
pos = statics.begin()->mRef.getPosition();
|
pos = statics.begin()->mRef.getPosition();
|
||||||
|
pos.rot[0] = pos.rot[1] = pos.rot[2] = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue