summaryrefslogtreecommitdiffstats
path: root/src/control/Script2.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-05 12:03:14 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:45:48 +0200
commit3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572 (patch)
tree425b44a612b227d1fc1e788ee7b1d6783a171492 /src/control/Script2.cpp
parentFix IsSphereVisible calls (diff)
downloadre3-3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572.tar
re3-3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572.tar.gz
re3-3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572.tar.bz2
re3-3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572.tar.lz
re3-3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572.tar.xz
re3-3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572.tar.zst
re3-3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572.zip
Diffstat (limited to 'src/control/Script2.cpp')
-rw-r--r--src/control/Script2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script2.cpp b/src/control/Script2.cpp
index e4c71403..6f6e89cc 100644
--- a/src/control/Script2.cpp
+++ b/src/control/Script2.cpp
@@ -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;