summaryrefslogtreecommitdiffstats
path: root/Project/Bus.cpp
diff options
context:
space:
mode:
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)