summaryrefslogtreecommitdiffstats
path: root/Project/Load.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-12-12 21:12:51 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-12-12 21:12:51 -0200
commitac9b62df34695e8c7f4fbb838c6126bd98671316 (patch)
treeb010fdd0d733353ba4646bc26d3ecf5ee141eb5c /Project/Load.cpp
parent7075de4b71a96afb7ca7c6cc115a4ec542ac53a9 (diff)
downloadPSP.git-ac9b62df34695e8c7f4fbb838c6126bd98671316.tar.gz
PSP.git-ac9b62df34695e8c7f4fbb838c6126bd98671316.tar.xz
PSP.git-ac9b62df34695e8c7f4fbb838c6126bd98671316.zip
Many elements save implemented
Diffstat (limited to 'Project/Load.cpp')
-rw-r--r--Project/Load.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Project/Load.cpp b/Project/Load.cpp
index e46b48b..9889215 100644
--- a/Project/Load.cpp
+++ b/Project/Load.cpp
@@ -97,6 +97,7 @@ void Load::Rotate(bool clockwise)
if(!clockwise) rotAngle = -m_rotationAngle;
m_angle += rotAngle;
+ if(m_angle >= 360 || m_angle <= -360) m_angle = 0.0;
m_pointList[2] = RotateAtPosition(m_pointList[2], rotAngle);
m_pointList[3] = RotateAtPosition(m_pointList[3], rotAngle);
UpdateSwitchesPosition();