summaryrefslogtreecommitdiffstats
path: root/Project/Bus.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/Bus.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/Bus.cpp')
-rw-r--r--Project/Bus.cpp2
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)