From eea0e6d3b3f9651d745d0c68b5d6ec6604b24a6a Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sat, 5 Jun 2021 00:27:13 +0100 Subject: [PATCH] fix chicken example --- agb/examples/chicken.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/examples/chicken.rs b/agb/examples/chicken.rs index c10a348b..38b08100 100644 --- a/agb/examples/chicken.rs +++ b/agb/examples/chicken.rs @@ -151,8 +151,8 @@ fn update_chicken_object(chicken: &mut Character, state: State, frame_count: u32 } } - let x: u8 = (chicken.position.x >> 8).try_into().unwrap(); - let y: u8 = (chicken.position.y >> 8).try_into().unwrap(); + let x: u16 = (chicken.position.x >> 8).try_into().unwrap(); + let y: u16 = (chicken.position.y >> 8).try_into().unwrap(); chicken.object.set_x(x - 4); chicken.object.set_y(y - 4);