1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 10:39:40 +00:00

Bug #4971: OpenMW-CS: Make rotations display as degrees instead of radians

This commit is contained in:
Nat Meo 2019-04-25 14:26:28 -04:00
parent 7941fd6780
commit a3b7a12fe7
2 changed files with 3 additions and 2 deletions

View file

@ -73,6 +73,7 @@
Bug #4964: Multiple effect spell projectile sounds play louder than vanilla
Bug #4965: Global light attenuation settings setup is lacking
Bug #4969: "Miss" sound plays for any actor
Bug #4971: OpenMW-CS: Make rotations display as degrees instead of radians
Bug #4972: Player is able to use quickkeys while disableplayerfighting is active
Bug #4979: AiTravel maximum range depends on "actors processing range" setting
Bug #4980: Drowning mechanics is applied for actors indifferently from distance to player

View file

@ -1376,7 +1376,7 @@ namespace CSMWorld
virtual QVariant get (const Record<ESXRecordT>& record) const
{
const ESM::Position& position = record.get().*mPosition;
return position.rot[mIndex];
return osg::RadiansToDegrees(position.rot[mIndex]);
}
virtual void set (Record<ESXRecordT>& record, const QVariant& data)
@ -1385,7 +1385,7 @@ namespace CSMWorld
ESM::Position& position = record2.*mPosition;
position.rot[mIndex] = data.toFloat();
position.rot[mIndex] = osg::DegreesToRadians(data.toFloat());
record.setModified (record2);
}