mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
MATH: Fix wrong angle management when below the lower range boundary.
This commit is contained in:
parent
85dc64840a
commit
b7010c4c1d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user