Fix wrong directions.
This commit is contained in:
parent
44c40f6473
commit
1cfbf7f65b
|
@ -98,10 +98,10 @@ impl From<Rot2> for MovementDirection {
|
||||||
h if h > PI / 8. && h <= 3. * PI / 8. => NorthEast,
|
h if h > PI / 8. && h <= 3. * PI / 8. => NorthEast,
|
||||||
h if h > 3. * PI / 8. && h <= 5. * PI / 8. => North,
|
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 > 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 <= -7. * PI / 8. => West,
|
||||||
h if h > -7. * PI / 8. && h <= -5. * PI / 8. => SouthEast,
|
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 > -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,
|
_ => West,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user