mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
satisfy linter
This commit is contained in:
parent
1c779e3c31
commit
8867c5c9f1
1 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ impl ObjectControl {
|
||||||
fn get_unused_object_index(&self) -> u8 {
|
fn get_unused_object_index(&self) -> u8 {
|
||||||
let mut objects = self.objects.borrow_mut();
|
let mut objects = self.objects.borrow_mut();
|
||||||
for index in 0..128 {
|
for index in 0..128 {
|
||||||
if objects.get(index).unwrap() == false {
|
if !objects.get(index).unwrap() {
|
||||||
objects.set(index, true);
|
objects.set(index, true);
|
||||||
return index as u8;
|
return index as u8;
|
||||||
}
|
}
|
||||||
|
@ -287,7 +287,7 @@ impl ObjectControl {
|
||||||
fn get_unused_affine_index(&self) -> u8 {
|
fn get_unused_affine_index(&self) -> u8 {
|
||||||
let mut affines = self.affines.borrow_mut();
|
let mut affines = self.affines.borrow_mut();
|
||||||
for index in 0..32 {
|
for index in 0..32 {
|
||||||
if affines.get(index).unwrap() == false {
|
if !affines.get(index).unwrap() {
|
||||||
affines.set(index, true);
|
affines.set(index, true);
|
||||||
return index as u8;
|
return index as u8;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue