mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 01:39:40 +00:00
oups introduced a bug..
This commit is contained in:
parent
48b3f1e0cf
commit
3384d92761
1 changed files with 3 additions and 3 deletions
|
@ -119,15 +119,15 @@ namespace MWScript
|
|||
|
||||
if (axis == "x")
|
||||
{
|
||||
runtime.push(Ogre::Radian(ptr.getRefData().getPosition().rot[0]).valueDegrees());
|
||||
runtime.push(Ogre::Radian(ptr.getCellRef().mPos.rot[0]).valueDegrees());
|
||||
}
|
||||
else if (axis == "y")
|
||||
{
|
||||
runtime.push(Ogre::Radian(ptr.getRefData().getPosition().rot[1]).valueDegrees());
|
||||
runtime.push(Ogre::Radian(ptr.getCellRef().mPos.rot[1]).valueDegrees());
|
||||
}
|
||||
else if (axis == "z")
|
||||
{
|
||||
runtime.push(Ogre::Radian(ptr.getRefData().getPosition().rot[2]).valueDegrees());
|
||||
runtime.push(Ogre::Radian(ptr.getCellRef().mPos.rot[2]).valueDegrees());
|
||||
}
|
||||
else
|
||||
throw std::runtime_error ("invalid ration axis: " + axis);
|
||||
|
|
Loading…
Reference in a new issue