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/Bus.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/Bus.cpp')
-rw-r--r-- | Project/Bus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/Bus.cpp b/Project/Bus.cpp index a684ed4..f41b0d1 100644 --- a/Project/Bus.cpp +++ b/Project/Bus.cpp @@ -165,7 +165,7 @@ void Bus::Rotate(bool clockwise) if(!clockwise) rotAngle = -m_rotationAngle; m_angle += rotAngle; - if(m_angle >= 360.0) m_angle = 0.0; + if(m_angle >= 360 || m_angle <= -360) m_angle = 0.0; } bool Bus::GetContextMenu(wxMenu& menu) |