mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 15:49:00 +00:00
Atan2 and Sqrt
This commit is contained in:
parent
669374ec1a
commit
7857590990
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue