diff options
author | aap <aap@papnet.eu> | 2020-01-31 12:57:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 12:57:43 +0100 |
commit | 5794732ad4582dfb583f9554c66201ab982ba22b (patch) | |
tree | ffea6b8d1383a57081898cc369d24bfae591d9dc /src/core/FileLoader.cpp | |
parent | Merge pull request #298 from Sergeanur/save (diff) | |
parent | suggested fixes (diff) | |
download | re3-5794732ad4582dfb583f9554c66201ab982ba22b.tar re3-5794732ad4582dfb583f9554c66201ab982ba22b.tar.gz re3-5794732ad4582dfb583f9554c66201ab982ba22b.tar.bz2 re3-5794732ad4582dfb583f9554c66201ab982ba22b.tar.lz re3-5794732ad4582dfb583f9554c66201ab982ba22b.tar.xz re3-5794732ad4582dfb583f9554c66201ab982ba22b.tar.zst re3-5794732ad4582dfb583f9554c66201ab982ba22b.zip |
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r-- | src/core/FileLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index 8fb4b4d9..b49fccbb 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -679,7 +679,7 @@ CFileLoader::LoadMLOInstance(int id, const char *line) &scale.x, &scale.y, &scale.z, &rot.x, &rot.y, &rot.z, &angle); - float rad = 2.0f * (PI / 2.0f - Atan2(angle, Sqrt(1.0f - SQR(angle)))); + float rad = Acos(angle) * 2.0f; CInstance *inst = CModelInfo::GetMloInstanceStore().alloc(); minfo->lastInstance++; |