From b25391560c12a3af9152a9f50cd8c438f68551c4 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 9 Mar 2023 00:29:36 -0500 Subject: [PATCH] [F] Fix type --- tngame-rs/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tngame-rs/src/main.rs b/tngame-rs/src/main.rs index 865f2ee..da97e93 100644 --- a/tngame-rs/src/main.rs +++ b/tngame-rs/src/main.rs @@ -435,7 +435,7 @@ async fn pull_input(mt: Arc>, cn: &Consts) -> Result<()> { { let mut mt = mt.lock().await; let mut move_x = |amount: i32| { - mt.x = (mt.x as i32 + amount).max(0).min((mt.w - cn.asc_cat.w) as i32) as u16; + mt.x = (mt.x + amount).max(0).min((mt.w - cn.asc_cat.w)); if mt.state == State::Welcome { mt.state = State::Exploring; }