mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Remove useless cast
This commit is contained in:
parent
b25ebf4a94
commit
345a27a7d9
|
@ -28,12 +28,7 @@ pub fn write_level(
|
|||
.iter()
|
||||
.enumerate()
|
||||
{
|
||||
map.set_tile(
|
||||
vram,
|
||||
(i as u16, 0).into(),
|
||||
tileset,
|
||||
tile_settings[tile as usize],
|
||||
);
|
||||
map.set_tile(vram, (i as u16, 0).into(), tileset, tile_settings[tile]);
|
||||
}
|
||||
|
||||
map.set_scroll_pos((-(WIDTH / 2 - 7 * 8 / 2) as i16, -(HEIGHT / 2 - 4) as i16).into());
|
||||
|
|
Loading…
Reference in a new issue