Skip to content

Commit

Permalink
Fix map view roll normalization #474
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Jan 26, 2018
1 parent 05d0b2b commit c93bb64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vtm/src/org/oscim/map/ViewController.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ public void rollMap(float move) {
public void setRoll(double degree) {
ThreadUtils.assertMainThread();

while (degree > 360)
while (degree > 180)
degree -= 360;
while (degree < 0)
while (degree < -180)
degree += 360;

mPos.roll = (float) degree;
Expand Down

0 comments on commit c93bb64

Please sign in to comment.