From 457f0aca0e28dbc50c50cf513592c5e5491c6739 Mon Sep 17 00:00:00 2001 From: raeleus Date: Thu, 3 Oct 2024 22:03:24 -0700 Subject: [PATCH] Update the location if moving to an empty cell. Resolves #38 --- Input.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Input.js b/Input.js index 6e316e7..732149c 100644 --- a/Input.js +++ b/Input.js @@ -1382,6 +1382,7 @@ function doGoToLocation(command) { distance = pointDistance(state.x, state.y, arg0, arg1) state.x = parseInt(arg0) state.y = parseInt(arg1) + state.location = null } else { distance = pointDistance(state.x, state.y, location.x, location.y) state.x = location.x