diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-05 12:03:14 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:45:48 +0200 |
commit | 3aac4ea62aaa4b2c032ebc446bc0a729b9cc0572 (patch) | |
tree | 425b44a612b227d1fc1e788ee7b1d6783a171492 /src/control/Script5.cpp | |
parent | Fix IsSphereVisible calls (diff) | |
download | re3-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 '')
-rw-r--r-- | src/control/Script5.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp index 8354492e..d9991388 100644 --- a/src/control/Script5.cpp +++ b/src/control/Script5.cpp @@ -1002,10 +1002,10 @@ void CRunningScript::PlayerInAngledAreaCheckCommand(int32 command, uint32* pIp) initAngle -= TWOPI; // it looks like the idea is to use a rectangle using the diagonal of the rectangle as // the side of new rectangle, with "length" being the length of second side - float rotatedSupX = supX + side2length * sin(initAngle); - float rotatedSupY = supY - side2length * cos(initAngle); - float rotatedInfX = infX + side2length * sin(initAngle); - float rotatedInfY = infY - side2length * cos(initAngle); + float rotatedSupX = supX + side2length * Sin(initAngle); + float rotatedSupY = supY - side2length * Cos(initAngle); + float rotatedInfX = infX + side2length * Sin(initAngle); + float rotatedInfY = infY - side2length * Cos(initAngle); float side1X = supX - infX; float side1Y = supY - infY; float side1Length = CVector2D(side1X, side1Y).Magnitude(); |