1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Fix copy paste error

This commit is contained in:
Evil Eye 2022-05-05 21:53:20 +02:00
parent 68a1958c94
commit bc5e43ab60

View File

@ -262,15 +262,15 @@ namespace MWScript
{
if (axis[0] == 'x')
{
ret = osg::RadiansToDegrees(ptr.getRefData().getPosition().pos[0]);
ret = ptr.getRefData().getPosition().pos[0];
}
else if (axis[0] == 'y')
{
ret = osg::RadiansToDegrees(ptr.getRefData().getPosition().pos[1]);
ret = ptr.getRefData().getPosition().pos[1];
}
else if (axis[0] == 'z')
{
ret = osg::RadiansToDegrees(ptr.getRefData().getPosition().pos[2]);
ret = ptr.getRefData().getPosition().pos[2];
}
}
runtime.push(ret);
@ -348,15 +348,15 @@ namespace MWScript
{
if (axis[0] == 'x')
{
ret = osg::RadiansToDegrees(ptr.getCellRef().getPosition().pos[0]);
ret = ptr.getCellRef().getPosition().pos[0];
}
else if (axis[0] == 'y')
{
ret = osg::RadiansToDegrees(ptr.getCellRef().getPosition().pos[1]);
ret = ptr.getCellRef().getPosition().pos[1];
}
else if (axis[0] == 'z')
{
ret = osg::RadiansToDegrees(ptr.getCellRef().getPosition().pos[2]);
ret = ptr.getCellRef().getPosition().pos[2];
}
}
runtime.push(ret);