Fix sin & cos calls

This commit is contained in:
Sergeanur
2021-06-05 13:03:14 +03:00
parent 1558788df1
commit 3aac4ea62a
4 changed files with 17 additions and 17 deletions

View File

@@ -467,8 +467,8 @@ int8 CRunningScript::ProcessCommands300To399(int32 command)
float length = GET_FLOAT_PARAM(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;