Update the location if moving to an empty cell. Resolves #38

This commit is contained in:
raeleus 2024-10-03 22:03:24 -07:00
parent c00399ebb7
commit 457f0aca0e

View file

@ -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