Remove useless cast

This commit is contained in:
Gwilym Inzani 2023-08-29 16:25:16 +01:00
parent b25ebf4a94
commit 345a27a7d9

View file

@ -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());