diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-01-29 12:00:40 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-01-29 12:00:40 +0100 |
commit | 81de0e0cbd7d3834c71282348ce61b69474a01e8 (patch) | |
tree | 4fd0e0bc5390b85215d59e95e651a959cca71e8a /src/core | |
parent | readme change (diff) | |
download | re3-81de0e0cbd7d3834c71282348ce61b69474a01e8.tar re3-81de0e0cbd7d3834c71282348ce61b69474a01e8.tar.gz re3-81de0e0cbd7d3834c71282348ce61b69474a01e8.tar.bz2 re3-81de0e0cbd7d3834c71282348ce61b69474a01e8.tar.lz re3-81de0e0cbd7d3834c71282348ce61b69474a01e8.tar.xz re3-81de0e0cbd7d3834c71282348ce61b69474a01e8.tar.zst re3-81de0e0cbd7d3834c71282348ce61b69474a01e8.zip |
Diffstat (limited to 'src/core')
-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++; |