diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-12-12 21:12:51 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-12-12 21:12:51 -0200 |
commit | ac9b62df34695e8c7f4fbb838c6126bd98671316 (patch) | |
tree | b010fdd0d733353ba4646bc26d3ecf5ee141eb5c /Project/Load.cpp | |
parent | 7075de4b71a96afb7ca7c6cc115a4ec542ac53a9 (diff) | |
download | PSP.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.cpp | 1 |
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(); |