mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 15:16:40 +11:00
use mag squared
This commit is contained in:
parent
83c511a186
commit
64308a993c
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ pub fn no_game(mut gba: crate::Gba) -> ! {
|
|||
let square_positions = {
|
||||
let mut s = letters();
|
||||
for letter in s.iter_mut() {
|
||||
letter.sort_by_key(|a| a.manhattan_distance());
|
||||
letter.sort_by_key(|a| a.magnitude_squared());
|
||||
}
|
||||
s
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue