chore(ppu): remoe unnecessary brackets

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-09-21 12:13:55 -03:00
parent 227928e8ca
commit 142231d355
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ impl PixelFetcher {
let id = self.back.tile.id.expect("Tile Number is present"); let id = self.back.tile.id.expect("Tile Number is present");
let tile_data_addr = match control.tile_data_addr() { let tile_data_addr = match control.tile_data_addr() {
TileDataAddress::X8800 => 0x9000u16.wrapping_add(((id as i8) as i16 * 16) as u16), TileDataAddress::X8800 => 0x9000u16.wrapping_add((id as i8 as i16 * 16) as u16),
TileDataAddress::X8000 => 0x8000 + (id as u16 * 16), TileDataAddress::X8000 => 0x8000 + (id as u16 * 16),
}; };