From 7857590990c32e05a83bbf1e70e10d6d9a8341b8 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Mon, 20 Jan 2020 23:21:51 +0200 Subject: Atan2 and Sqrt --- src/core/FileLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index 4662b508..cdf31f7b 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 = 2.0f * (PI / 2.0f - Atan2(angle, Sqrt(1.0f - SQR(angle)))); CInstance *inst = CModelInfo::GetMloInstanceStore()->alloc(); minfo->lastInstance++; -- cgit v1.2.3