Fix sin & cos calls

This commit is contained in:
Sergeanur
2021-06-05 13:03:14 +03:00
parent f2c8522daa
commit 6e4a2947ea
4 changed files with 17 additions and 17 deletions

View File

@@ -431,8 +431,8 @@ int8 CRunningScript::ProcessCommands300To399(int32 command)
float length = *(float*)&ScriptParams[5];
float x, y;
if (angle != 0.0f){
y = cos(angle) * length;
x = sin(angle) * length;
y = Cos(angle) * length;
x = Sin(angle) * length;
}else{
y = length;
x = 0.0f;