[F] Fix type
This commit is contained in:
@@ -435,7 +435,7 @@ async fn pull_input(mt: Arc<Mutex<Mutes>>, cn: &Consts) -> Result<()> {
|
|||||||
{
|
{
|
||||||
let mut mt = mt.lock().await;
|
let mut mt = mt.lock().await;
|
||||||
let mut move_x = |amount: i32| {
|
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 {
|
if mt.state == State::Welcome {
|
||||||
mt.state = State::Exploring;
|
mt.state = State::Exploring;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user