mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 21:20:27 -04:00
Update the location if moving to an empty cell. Resolves #38
This commit is contained in:
parent
c00399ebb7
commit
457f0aca0e
1 changed files with 1 additions and 0 deletions
1
Input.js
1
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue