Fix wrong directions.

This commit is contained in:
Nolan Darilek 2024-12-01 15:30:08 -06:00
parent 44c40f6473
commit 1cfbf7f65b

View File

@ -98,10 +98,10 @@ impl From<Rot2> for MovementDirection {
h if h > PI / 8. && h <= 3. * PI / 8. => NorthEast,
h if h > 3. * PI / 8. && h <= 5. * PI / 8. => North,
h if h > 5. * PI / 8. && h <= 7. * PI / 8. => NorthWest,
h if h > 7. * PI / 8. || h <= -7. * PI / 8. => East,
h if h > -7. * PI / 8. && h <= -5. * PI / 8. => SouthEast,
h if h > 7. * PI / 8. || h <= -7. * PI / 8. => West,
h if h > -7. * PI / 8. && h <= -5. * PI / 8. => SouthWest,
h if h > -5. * PI / 8. && h <= -3. * PI / 8. => South,
h if h > -3. * PI / 8. && h <= -PI / 8. => SouthWest,
h if h > -3. * PI / 8. && h <= -PI / 8. => SouthEast,
_ => West,
})
}