[U] Allow walking pass the right border

This commit is contained in:
Azalea Gui
2023-03-09 01:38:12 -05:00
parent e93c82c724
commit b601c72cc6
+1 -1
View File
@@ -467,7 +467,7 @@ async fn pull_input(mt: Arc<Mutex<Mutes>>, cn: &Consts) -> Result<()> {
{
let mut mt = mt.lock().await;
let mut move_x = |amount: i32| {
mt.x = (mt.x + amount).max(0).min((mt.w - cn.asc_cat.w));
mt.x = (mt.x + amount).max(0);
if mt.state == State::Welcome {
mt.state = State::Exploring;
}