MATH: Fix wrong angle management when below the lower range boundary.

This commit is contained in:
Giulio Camuffo 2011-09-29 22:12:32 +02:00
parent 85dc64840a
commit b7010c4c1d

View File

@ -149,7 +149,7 @@ void Angle::crop() {
_degrees -= 360.f * x;
}
if (_degrees < _rangeLow) {
int x = (int)(_degrees - _rangeLow) / 360.f;
int x = (int)(_degrees + _rangeLow) / 360.f;
_degrees -= 360.f * x;
}
}