mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
use mag squared
This commit is contained in:
parent
83c511a186
commit
64308a993c
|
@ -152,7 +152,7 @@ pub fn no_game(mut gba: crate::Gba) -> ! {
|
||||||
let square_positions = {
|
let square_positions = {
|
||||||
let mut s = letters();
|
let mut s = letters();
|
||||||
for letter in s.iter_mut() {
|
for letter in s.iter_mut() {
|
||||||
letter.sort_by_key(|a| a.manhattan_distance());
|
letter.sort_by_key(|a| a.magnitude_squared());
|
||||||
}
|
}
|
||||||
s
|
s
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue