use mag squared

This commit is contained in:
Corwin 2023-05-07 00:47:38 +01:00
parent 83c511a186
commit 64308a993c
No known key found for this signature in database

View file

@ -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
}; };