object priority 😝
This commit is contained in:
parent
d90b773c7f
commit
eea5245d78
|
@ -266,6 +266,9 @@ impl Gpu {
|
|||
},
|
||||
oam_location: (i - 0xFE00) as u8,
|
||||
});
|
||||
if objs.len() >= 10 {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
objs.sort_by_key(|o| {
|
||||
|
@ -275,7 +278,6 @@ impl Gpu {
|
|||
v
|
||||
});
|
||||
objs.reverse();
|
||||
objs.truncate(11);
|
||||
objs
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue